/* DevOps Sprint - Design & Style System */

/* Global Variables & Reset */
:root {
  --bg-primary: #080c16;
  --bg-secondary: #0f1626;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(26, 36, 57, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --secondary-gradient: linear-gradient(135deg, #b92b27 0%, #1565c0 100%);
  --accent-purple: #9d4edd;
  --accent-cyan: #00f2fe;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;

  --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Lights */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: #00f2fe;
  top: 10%;
  left: -100px;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: 10%;
  right: -150px;
}
.glow-3 {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.nav-btn svg {
  opacity: 0.7;
  transition: var(--transition-fast);
}
.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.nav-btn.active {
  color: #fff;
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}
.nav-btn.active svg {
  color: var(--accent-cyan);
  opacity: 1;
}

/* Telegram Badge */
.telegram-badge {
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.3);
  color: #0088cc;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.05);
}
.telegram-badge:hover {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
  transform: translateY(-2px);
}

/* Main Container and Loader */
.main-container-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  color: var(--text-secondary);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page Components & Sections styling */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* HERO / LANDING STYLING */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem 0;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #080c16;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-circle-accent {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateDashed 60s linear infinite;
}
.hero-terminal-mock {
  position: absolute;
  width: 340px;
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  backdrop-filter: blur(8px);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}
.terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-body {
  line-height: 1.5;
}
.terminal-line {
  margin-bottom: 0.4rem;
}
.terminal-prompt {
  color: #fff;
  opacity: 0.5;
}
.terminal-output {
  color: var(--accent-green);
}

@keyframes rotateDashed {
  to { transform: rotate(360deg); }
}

/* STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: var(--transition-normal);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* DASHBOARD VIEW */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 1rem;
    height: 350px;
  }
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.card-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.card-title-inner {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-title-inner svg {
  color: var(--accent-cyan);
}

/* Profile Progress Ring */
.progress-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.circular-progress {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-cyan) 0deg, var(--bg-secondary) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 1s ease-out;
}
.circular-progress::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #0f1626;
}
.progress-value {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.progress-details {
  flex: 1;
}
.progress-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.progress-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Quick link cards */
.dashboard-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dash-action-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.dash-action-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateX(3px);
}
.action-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.action-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.badge-status.todo {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.badge-status.done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ROADMAP STYLING */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.roadmap-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.roadmap-dot-interactive {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--text-muted);
  z-index: 2;
  cursor: pointer;
  transition: var(--transition-fast);
}
.roadmap-step.completed .roadmap-dot-interactive {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}
.roadmap-step.completed .roadmap-content h4 {
  color: var(--text-primary);
  text-decoration: line-through;
  opacity: 0.6;
}
.roadmap-content {
  cursor: pointer;
  flex: 1;
}
.roadmap-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  transition: var(--transition-fast);
}
.roadmap-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.roadmap-step:hover .roadmap-dot-interactive {
  transform: scale(1.3);
  border-color: var(--accent-cyan);
}

/* LESSONS VIEW */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  cursor: pointer;
}
.lesson-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}
.lesson-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, rgba(8, 12, 22, 0.9) 0%, rgba(30, 41, 59, 0.6) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.thumbnail-decor {
  text-align: center;
}
.thumbnail-decor svg {
  color: var(--accent-cyan);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}
.thumbnail-decor span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}
.lesson-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.lesson-watch-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}
.lesson-card.watched .lesson-watch-overlay {
  opacity: 1;
}
.lesson-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lesson-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #fff;
}
.lesson-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lesson-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* SINGLE LESSON DETAILS VIEW */
.lesson-detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .lesson-detail-layout {
    grid-template-columns: 1fr;
  }
}
.player-container {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.lesson-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.lesson-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.lesson-info-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.watch-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.watch-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.watch-toggle-btn.completed {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}
.lesson-resources {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}
.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.resource-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.resource-item a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* ARTICLES VIEW */
.articles-list-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.article-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  cursor: pointer;
}
.article-row-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.2);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.article-cat-badge {
  background: rgba(157, 78, 221, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.article-row-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  transition: var(--transition-fast);
}
.article-row-card:hover h3 {
  color: var(--accent-cyan);
}
.article-row-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article-footer-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.article-footer-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* SINGLE ARTICLE VIEW */
.single-article-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
@media (max-width: 600px) {
  .single-article-container {
    padding: 1.5rem;
  }
}
.article-back-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}
.article-back-btn:hover {
  transform: translateX(-3px);
  color: #fff;
}
.article-meta-info {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.article-rich-body {
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e5e7eb;
}
.article-rich-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: #fff;
}
.article-rich-body p {
  margin-bottom: 1.25rem;
}
.article-rich-body code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #fb7185;
}
.article-rich-body pre {
  font-family: var(--font-mono);
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-rich-body pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
  font-size: inherit;
}
.article-rich-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-rich-body li {
  margin-bottom: 0.5rem;
}

/* COMMENTS SYSTEM */
.comments-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}
.comments-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.comment-form {
  margin-bottom: 2rem;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 500px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
  }
}
.input-field {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.input-field:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
textarea.input-field {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 0.75rem;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comment-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  transition: var(--transition-fast);
}
.comment-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.comment-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.comment-content {
  font-size: 0.92rem;
  color: var(--text-secondary);
  word-break: break-word;
}
.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.comment-like-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}
.comment-like-btn:hover {
  color: #ef4444;
}
.comment-like-btn.liked {
  color: #ef4444;
}

/* HOMEWORK MODULE */
.homeworks-split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .homeworks-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Task Selector Sidebar */
.homeworks-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hw-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.hw-select-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.2);
}
.hw-select-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.03);
}
.hw-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.hw-select-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.hw-diff-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}
.hw-diff-badge.oson {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}
.hw-diff-badge.o-rta {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-orange);
}
.hw-diff-badge.qiyin {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}
.hw-select-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.hw-select-status.submitted {
  color: var(--accent-green);
}

/* Homework Interactive Workspace */
.hw-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hw-details h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.hw-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.hw-description ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
.hw-description li {
  margin-bottom: 0.4rem;
}
.hw-description code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Editor Simulator Panel */
.editor-simulator {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #090d16;
  box-shadow: var(--shadow-sm);
}
.editor-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.editor-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.25rem;
  min-height: 220px;
  resize: vertical;
}
.editor-textarea:focus {
  outline: none;
}

/* Submission Log Area */
.submission-log-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}
.submission-log-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.log-output {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* TOAST STYLING */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  background: rgba(13, 27, 42, 0.95);
  border-left: 4px solid var(--accent-cyan);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
  min-width: 280px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.success {
  border-left-color: var(--accent-green);
}
.toast.warning {
  border-left-color: var(--accent-orange);
}
.toast.error {
  border-left-color: var(--accent-red);
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.fade-out {
  animation: slideOut 0.3s ease-in forwards;
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* FOOTER */
.main-footer {
  background: #05080e;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   11. ADMIN PANEL & MANAGEMENT STYLES
   ========================================== */

/* Login Portal */
.admin-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 0;
}
.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 242, 254, 0.05);
  animation: fadeIn 0.4s ease-out;
}
.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.admin-lock-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}
.admin-login-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}
.admin-login-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Floating Label Inputs */
.form-group-floating {
  position: relative;
  width: 100%;
}
.form-group-floating input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8, 12, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.form-group-floating input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}
.form-group-floating label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}
.form-group-floating input:focus ~ label,
.form-group-floating input:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: #0f1626;
  padding: 0 6px;
  transform: translateY(-50%) translateX(-4px);
}

/* Admin Dashboard layout */
.admin-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
  margin-bottom: 2rem;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.admin-tab-btn:hover {
  color: #fff;
}
.admin-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.admin-tab-btn svg {
  opacity: 0.8;
}
.admin-tab-btn.active svg {
  color: var(--accent-cyan);
}

/* Tab contents and actions */
.admin-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.admin-action-bar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Data Table Grid styling */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow-x: auto;
  backdrop-filter: blur(8px);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}
.table-actions {
  display: flex;
  gap: 0.5rem;
}
.table-actions button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.table-actions button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.table-actions button.edit-btn:hover:not(:disabled),
.table-actions button.edit-art-btn:hover:not(:disabled) {
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.08);
}
.table-actions button.delete-btn:hover:not(:disabled),
.table-actions button.delete-art-btn:hover:not(:disabled) {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* Modals Overlay & Card */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: fadeInModal 0.25s ease-out forwards;
}
.admin-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md), 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.admin-modal-card.wide {
  max-width: 840px;
}
.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}
.close-modal-btn:hover {
  color: #fff;
}

/* Form layouts */
.admin-modal-form {
  padding: 2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.input-field {
  background: rgba(8, 12, 22, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.input-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}
select.input-field {
  cursor: pointer;
}
select.input-field option {
  background-color: var(--bg-secondary);
  color: #fff;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Resource row lists */
.modal-resources-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.resource-form-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr auto;
  gap: 0.75rem;
  align-items: center;
}
.remove-row-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.remove-row-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Modal Animation Keyframes */
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInModal {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.admin-modal-overlay.fade-out {
  animation: fadeOutModal 0.2s ease-in forwards;
}
.admin-modal-overlay.fade-out .admin-modal-card {
  animation: slideOutModal 0.2s ease-in forwards;
}
@keyframes fadeOutModal {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes slideOutModal {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}
