/* ==============================================================================
   SAZD ACADEMY CUSTOM LMS - CLASSROOM STYLESHEET (DEEP SPACE CYBER GOLD)
   ============================================================================== */

:root {
  --bg-primary: #070A14;
  --bg-secondary: #0E1428;
  --bg-card: #131E3D;
  --bg-card-hover: #18274F;
  --gold-primary: #FFB800;
  --gold-gradient: linear-gradient(135deg, #FFB800 0%, #E69500 100%);
  --cyan-primary: #38BDF8;
  --emerald-primary: #10B981;
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 184, 0, 0.35);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 1. Top Mentor Alert Bar (Yellow / Gold Announcement) */
.top-mentor-alert {
  background: linear-gradient(90deg, #FFB800 0%, #F59E0B 100%);
  color: #070A14;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  position: relative;
  z-index: 100;
}

.top-mentor-alert a {
  color: #070A14;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 2. Main LMS Header */
.lms-navbar {
  background: rgba(14, 20, 40, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo span { color: var(--gold-primary); }

.nav-course-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Course Progress Pill */
.progress-widget {
  background: rgba(7, 10, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-track {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 10px;
}

.progress-percentage {
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-primary);
}

/* User Profile Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 50px;
  transition: all 0.2s;
}

.user-menu:hover {
  border-color: var(--gold-primary);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #070A14;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
}

/* 3. Main Classroom Grid (Video Left, Modules Right) */
.classroom-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  flex: 1;
  min-height: calc(100vh - 110px);
}

/* Main Video Area */
.video-viewport-panel {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  background: #070A14;
  overflow-y: auto;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.video-frame-wrap iframe,
.video-frame-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Header Under Player */
.lecture-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 15px;
}

.lecture-title-box h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}

.lecture-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.lecture-meta-tags span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-complete-next {
  background: var(--gold-gradient);
  color: #070A14;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.35);
  transition: all 0.2s;
}

.btn-complete-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 184, 0, 0.5);
}

/* Tabbed Section Below Video */
.lecture-tabs-header {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 6px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  color: var(--gold-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

.tab-content-panel {
  padding: 20px 0;
  line-height: 1.6;
  color: #CBD5E1;
  font-size: 14px;
}

/* Resource Cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.resource-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #FFF;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.resource-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* 4. Right Sidebar: Curriculum Drawer */
.curriculum-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.sidebar-top-actions {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

.action-pill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-pill-btn:hover {
  border-color: var(--gold-primary);
  color: #FFF;
}

.action-pill-btn.gold-active {
  background: rgba(255, 184, 0, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

/* Module Accordion Item */
.module-accordion-group {
  border-bottom: 1px solid var(--border-subtle);
}

.module-head {
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 20, 0.4);
  transition: background 0.2s;
  user-select: none;
}

.module-head:hover {
  background: rgba(255, 184, 0, 0.05);
}

.module-head-left {
  flex: 1;
  padding-right: 10px;
}

.module-title-txt {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 3px;
}

.module-stat-txt {
  font-size: 11.5px;
  color: var(--text-dim);
}

.module-chevron {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.3s;
}

.module-accordion-group.open .module-chevron {
  transform: rotate(180deg);
}

.lesson-items-list {
  display: none;
  background: var(--bg-primary);
}

.module-accordion-group.open .lesson-items-list {
  display: block;
}

.lesson-item-row {
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.lesson-item-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lesson-item-row.active-lesson {
  background: rgba(255, 184, 0, 0.1);
  border-left: 3px solid var(--gold-primary);
}

.lesson-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lesson-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lesson-checkbox.checked {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #070A14;
}

.lesson-name {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.35;
}

.lesson-item-row.active-lesson .lesson-name {
  color: var(--gold-primary);
  font-weight: 600;
}

.lesson-duration-badge {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  flex-shrink: 0;
}

/* Bottom WhatsApp Floating Mentorship Pill */
.sidebar-bottom-support {
  padding: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.btn-whatsapp-live {
  width: 100%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-whatsapp-live:hover {
  background: var(--emerald-primary);
  color: #070A14;
}

/* 5. Certificate Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.certificate-modal-box {
  background: linear-gradient(145deg, #0E1428 0%, #15234A 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 680px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 184, 0, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .classroom-container {
    grid-template-columns: 1fr;
  }
  .curriculum-sidebar {
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .video-viewport-panel {
    padding: 18px 14px;
  }
}
