/* ===== Interview Prep - Motivational Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --accent2: #fd79a8;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --dark: #2d3436;
  --dark2: #636e72;
  --light: #dfe6e9;
  --lighter: #f5f6fa;
  --white: #ffffff;
  --gradient1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --gradient2: linear-gradient(135deg, #00cec9 0%, #55efc4 100%);
  --gradient3: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
  --gradient4: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
  --shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--lighter);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 40%, #00cec9 100%);
  color: white;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1rem;
  opacity: 0.8;
  font-style: italic;
}

.hero .profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  margin-top: 20px;
  font-weight: 500;
}

.hero .profile-badge img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.profile-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== Motivational Quote Banner ===== */
.quote-banner {
  background: var(--gradient3);
  color: var(--dark);
  text-align: center;
  padding: 18px 40px;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  position: relative;
}

.quote-banner::before { content: '"'; font-size: 2rem; margin-right: 5px; opacity: 0.5; }
.quote-banner::after { content: '"'; font-size: 2rem; margin-left: 5px; opacity: 0.5; }

/* ===== Navigation ===== */
.nav {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-btn {
  padding: 14px 18px;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark2);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.nav-btn:hover { color: var(--primary); }
.nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===== Main Container ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ===== Section Panels ===== */
.section { display: none; animation: fadeIn 0.4s ease; }
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-header .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.card-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Schedule Table ===== */
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.schedule-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark2);
}

.schedule-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
}

.schedule-table tr.study td {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
  border-top: 1px solid #e8e6ff;
  border-bottom: 1px solid #e8e6ff;
}

.schedule-table tr.study td:first-child { border-left: 4px solid var(--primary); border-radius: 8px 0 0 8px; }
.schedule-table tr.study td:last-child { border-radius: 0 8px 8px 0; }

.schedule-table tr.break td {
  background: #f0faf8;
  border-top: 1px solid #d4f0eb;
  border-bottom: 1px solid #d4f0eb;
}
.schedule-table tr.break td:first-child { border-left: 4px solid var(--success); border-radius: 8px 0 0 8px; }
.schedule-table tr.break td:last-child { border-radius: 0 8px 8px 0; }

.schedule-table tr.office td {
  background: #fff8f0;
  border-top: 1px solid #fde8d0;
  border-bottom: 1px solid #fde8d0;
}
.schedule-table tr.office td:first-child { border-left: 4px solid var(--warning); border-radius: 8px 0 0 8px; }
.schedule-table tr.office td:last-child { border-radius: 0 8px 8px 0; }

.schedule-table tr.meeting td {
  background: #fff0f5;
  border-top: 1px solid #fdd;
  border-bottom: 1px solid #fdd;
}
.schedule-table tr.meeting td:first-child { border-left: 4px solid var(--accent2); border-radius: 8px 0 0 8px; }
.schedule-table tr.meeting td:last-child { border-radius: 0 8px 8px 0; }

.schedule-table tr.personal td {
  background: #f0f8ff;
  border-top: 1px solid #d0e8ff;
  border-bottom: 1px solid #d0e8ff;
}
.schedule-table tr.personal td:first-child { border-left: 4px solid #0984e3; border-radius: 8px 0 0 8px; }
.schedule-table tr.personal td:last-child { border-radius: 0 8px 8px 0; }

.time-cell {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--dark);
  min-width: 130px;
}

.icon-cell { font-size: 1.3rem; text-align: center; width: 40px; }

/* ===== Weekly Cards ===== */
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.weekly-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}

.weekly-card:hover { transform: translateY(-4px); }

.weekly-card-header {
  padding: 18px 22px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.weekly-card-header .day-icon { font-size: 1.8rem; }
.weekly-card-header h3 { font-size: 1.1rem; font-weight: 700; }
.weekly-card-header .focus { font-size: 0.85rem; opacity: 0.9; }
.weekly-card-header .note { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }

.weekly-card:nth-child(1) .weekly-card-header { background: var(--gradient1); }
.weekly-card:nth-child(2) .weekly-card-header { background: var(--gradient4); }
.weekly-card:nth-child(3) .weekly-card-header { background: var(--gradient2); }
.weekly-card:nth-child(4) .weekly-card-header { background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%); }
.weekly-card:nth-child(5) .weekly-card-header { background: var(--gradient3); }
.weekly-card:nth-child(6) .weekly-card-header { background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%); }
.weekly-card:nth-child(7) .weekly-card-header { background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); }

.weekly-card-body { padding: 18px 22px; }
.weekly-card-body ul { list-style: none; }
.weekly-card-body li {
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--lighter);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.weekly-card-body li:last-child { border: none; }
.weekly-card-body li::before {
  content: '▸';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Monthly Timeline ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient1);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.timeline-item .week-label {
  font-size: 0.8rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.timeline-item ul { margin-top: 12px; padding-left: 18px; }
.timeline-item li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--dark);
}

.milestone-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Min Prep Time ===== */
.prep-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.prep-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prep-stat .number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prep-stat .label {
  font-size: 0.8rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.prep-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lighter);
}

.prep-bar:last-child { border: none; }

.prep-bar-label {
  min-width: 220px;
  font-size: 0.9rem;
  font-weight: 500;
}

.prep-bar-track {
  flex: 1;
  height: 28px;
  background: var(--lighter);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.prep-bar-fill {
  height: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  transition: width 1s ease;
}

.prep-bar-fill.critical { background: var(--gradient1); }
.prep-bar-fill.high { background: var(--gradient2); }
.prep-bar-fill.medium { background: var(--gradient3); }

.prep-bar-weeks {
  min-width: 70px;
  font-size: 0.8rem;
  color: var(--dark2);
  text-align: right;
}

.priority-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
}

.priority-badge.critical { background: #f0e6ff; color: var(--primary); }
.priority-badge.high { background: #e0fff8; color: #00b894; }
.priority-badge.medium { background: #fff5e0; color: #e17055; }

/* ===== Interview Tracker ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  background: var(--white);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient1);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4); }

.btn-success {
  background: var(--gradient2);
  color: white;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 206, 201, 0.4); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #d63031; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

.btn-group { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ===== Interview List ===== */
.interview-list { margin-top: 24px; }

.interview-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all 0.3s;
}

.interview-item:hover { background: #eee; }

.interview-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.interview-status.scheduled { background: var(--primary); }
.interview-status.completed { background: var(--success); }
.interview-status.rejected { background: var(--danger); }
.interview-status.offered { background: var(--warning); }

.interview-info { flex: 1; }
.interview-info .company { font-weight: 600; font-size: 1rem; }
.interview-info .role { font-size: 0.85rem; color: var(--dark2); }
.interview-info .date { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

.interview-actions { display: flex; gap: 8px; }

/* ===== Document Upload ===== */
.upload-zone {
  border: 2px dashed var(--light);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: #f8f7ff;
}

.upload-zone.has-file {
  border-color: var(--success);
  background: #f0faf8;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-text { font-size: 0.95rem; color: var(--dark2); }
.upload-text strong { color: var(--primary); }

.doc-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.doc-preview .doc-icon { font-size: 2rem; }
.doc-preview .doc-info { flex: 1; }
.doc-preview .doc-name { font-weight: 600; font-size: 0.95rem; }
.doc-preview .doc-size { font-size: 0.8rem; color: var(--dark2); }
.doc-preview .doc-date { font-size: 0.75rem; color: var(--primary); }

.doc-actions { display: flex; gap: 8px; }

/* ===== Alarms ===== */
.alarm-list { margin-top: 16px; }

.alarm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.alarm-item .alarm-time {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  min-width: 140px;
}

.alarm-item .alarm-title { flex: 1; font-size: 0.9rem; }

/* ===== Alarm Popup ===== */
.alarm-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.alarm-popup-content {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.alarm-popup .alarm-icon { font-size: 4rem; display: block; margin-bottom: 16px; animation: ring 1s infinite; }
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.alarm-popup h3 { font-size: 1.3rem; margin-bottom: 8px; }
.alarm-popup p { color: var(--dark2); margin-bottom: 20px; }
.alarm-popup button {
  padding: 12px 40px;
  background: var(--gradient1);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===== Tips Section ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.tip-card:hover { transform: translateY(-4px); }

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.tip-card:nth-child(4n+1)::before { background: var(--gradient1); }
.tip-card:nth-child(4n+2)::before { background: var(--gradient2); }
.tip-card:nth-child(4n+3)::before { background: var(--gradient3); }
.tip-card:nth-child(4n+4)::before { background: var(--gradient4); }

.tip-card .tip-icon { font-size: 2rem; margin-bottom: 12px; }
.tip-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.tip-card p { font-size: 0.88rem; color: var(--dark2); line-height: 1.7; }

/* ===== Resume Section Grids ===== */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ===== Legend ===== */
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--dark2);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-dot.study { background: var(--primary); }
.legend-dot.break { background: var(--success); }
.legend-dot.office { background: var(--warning); }
.legend-dot.meeting { background: var(--accent2); }
.legend-dot.personal { background: #0984e3; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h2 { margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .resume-grid { grid-template-columns: 1fr; }
  .weekly-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .prep-overview { grid-template-columns: 1fr 1fr; }
  .nav-btn { padding: 12px 12px; font-size: 0.8rem; }
  .prep-bar { flex-direction: column; align-items: flex-start; }
  .prep-bar-label { min-width: auto; }
  .prep-bar-track { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .prep-overview { grid-template-columns: 1fr; }
}

/* ===== Topic Navigation Grid ===== */
.topic-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.topic-subject-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.topic-subject-card:hover {
  background: #eee;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.topic-subject-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.topic-subject-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ===== Topic Module Cards ===== */
.topic-module-card {
  border-left: 4px solid var(--primary-light);
}

.topic-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.topic-module-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.topic-chevron {
  font-size: 0.75rem;
  color: var(--dark2);
  transition: transform 0.3s;
}

.topic-list {
  padding-left: 24px;
}

.topic-list li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--dark);
  border-bottom: 1px solid var(--lighter);
  line-height: 1.6;
}

.topic-list li:last-child {
  border: none;
}

/* ===== Mock Test Subject Cards ===== */
.mocktest-subject-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.mocktest-subject-card:hover {
  background: #eee;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mocktest-subject-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.mocktest-subject-card.locked:hover {
  transform: none;
  box-shadow: none;
}

.mocktest-subject-card.passed {
  border-left: 4px solid var(--success);
}

.mocktest-subject-card.attempted {
  border-left: 4px solid var(--danger);
}

.mocktest-subject-card.available {
  border-left: 4px solid var(--primary);
}

.mocktest-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mocktest-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.mocktest-meta {
  font-size: 0.8rem;
  color: var(--dark2);
  margin-bottom: 6px;
}

.lock-badge, .pass-badge, .fail-badge, .new-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lock-badge { background: #f0f0f0; color: #999; }
.pass-badge { background: #e0fff8; color: #00b894; }
.fail-badge { background: #ffe0e0; color: #e17055; }
.new-badge { background: #eee6ff; color: var(--primary); }

.attempt-count {
  font-size: 0.75rem;
  color: var(--dark2);
  margin-top: 2px;
}

.progression-info {
  margin-top: 16px;
  padding: 14px 20px;
  background: #f8f7ff;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  font-size: 0.88rem;
  color: var(--dark);
}

/* ===== Mock Test UI ===== */
.mocktest-card {
  border-top: 4px solid var(--primary);
}

.mocktest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mocktest-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--lighter);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark2);
}

.mocktest-timer {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.mocktest-timer.timer-warning { color: var(--warning); }
.mocktest-timer.timer-critical { color: var(--danger); animation: pulse 0.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mocktest-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--lighter);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient1);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--dark2);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Question Cards ===== */
.mocktest-question {
  border-left: 4px solid var(--light);
  transition: border-color 0.3s;
}

.question-number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark2);
  font-weight: 600;
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--dark);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--lighter);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.option-card:hover {
  background: #eee;
  border-color: var(--light);
}

.option-card.selected {
  background: #f0eaff;
  border-color: var(--primary);
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
  border: 2px solid var(--light);
}

.option-card.selected .option-letter {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.option-text {
  flex: 1;
}

.mocktest-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1.05rem;
}

/* ===== Results ===== */
.mocktest-result-card {
  text-align: center;
  border-top: 4px solid var(--light);
}

.mocktest-result-card.result-pass { border-top-color: var(--success); }
.mocktest-result-card.result-fail { border-top-color: var(--danger); }

.result-header { margin-bottom: 24px; }

.result-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  display: block;
}

.result-header h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.result-header p {
  color: var(--dark2);
  font-size: 0.95rem;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-number.pass { color: var(--success); }
.stat-number.fail { color: var(--danger); }

.stat-label {
  font-size: 0.8rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Answer Review ===== */
.review-question {
  padding: 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--light);
}

.review-question.correct { border-left-color: var(--success); background: #f0faf8; }
.review-question.incorrect { border-left-color: var(--danger); background: #fff5f3; }

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.review-icon { flex-shrink: 0; }
.review-num { flex-shrink: 0; color: var(--dark2); }

.review-options {
  padding-left: 36px;
}

.review-option {
  padding: 6px 12px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-option.correct-answer {
  background: #d4f5e9;
  font-weight: 600;
  color: #00734d;
}

.review-option.wrong-answer {
  background: #ffe0d6;
  color: #c0392b;
  text-decoration: line-through;
}

.review-explanation {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--dark2);
  line-height: 1.6;
}

/* ===== Print ===== */
@media print {
  .nav, .quote-banner, .btn, .upload-zone input { display: none; }
  .section { display: block !important; page-break-inside: avoid; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== Responsive additions for topics & mock tests ===== */
@media (max-width: 768px) {
  .topic-nav-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .result-stats { gap: 20px; }
  .mocktest-header { flex-direction: column; align-items: flex-start; }
  .review-options { padding-left: 0; }
  .dashboard-subjects-grid { grid-template-columns: 1fr; }
  .dashboard-overall { flex-direction: column; align-items: center; }
  .overall-stats { flex-wrap: wrap; justify-content: center; }
  .subject-tests-grid { grid-template-columns: 1fr; }
}

/* ===== Dashboard ===== */
.dashboard-header-card {
  border-top: 4px solid var(--accent);
}

.dashboard-overall {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  padding: 20px 0;
}

.overall-progress-ring {
  position: relative;
  flex-shrink: 0;
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ring-pct {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ring-label {
  font-size: 0.75rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overall-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dash-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.dash-lbl {
  font-size: 0.75rem;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.dashboard-subject-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}

.dashboard-subject-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.dsc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.dsc-info {
  flex: 1;
}

.dsc-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dsc-progress-bar {
  height: 8px;
  background: var(--lighter);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dsc-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dsc-meta {
  font-size: 0.8rem;
  color: var(--dark2);
  font-weight: 500;
}

.dsc-arrow {
  font-size: 1.4rem;
  color: var(--dark2);
  font-weight: 300;
}

/* ===== Subject Progress Bar ===== */
.subject-progress-bar {
  height: 6px;
  background: var(--lighter);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.subject-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ===== Subject Tests Grid ===== */
.subject-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.subject-test-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}

.subject-test-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.subject-test-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
}

.subject-test-card.locked:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.subject-test-card.passed {
  border-left: 4px solid var(--success);
}

.subject-test-card.attempted {
  border-left: 4px solid var(--danger);
}

.subject-test-card.available {
  border-left: 4px solid var(--primary);
}

.stc-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.stc-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stc-meta {
  font-size: 0.8rem;
  color: var(--dark2);
  margin-bottom: 4px;
}

/* ===== Python Programs Section ===== */
.pp-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.pp-level-card {
  background: var(--lighter);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.pp-level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pp-level-card.pp-easy:hover { border-color: var(--success); }
.pp-level-card.pp-medium:hover { border-color: var(--warning); }
.pp-level-card.pp-hard:hover { border-color: var(--danger); }

.pp-level-icon { font-size: 2.5rem; margin-bottom: 10px; }
.pp-level-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pp-level-progress { font-size: 0.85rem; color: var(--dark2); margin-bottom: 10px; }

.pp-level-bar {
  height: 8px;
  background: var(--light);
  border-radius: 4px;
  overflow: hidden;
}

.pp-level-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Question List */
.pp-questions-list { margin-top: 8px; }

.pp-question-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.pp-question-item:hover {
  background: #eee;
  transform: translateX(4px);
}

.pp-question-item.pp-done {
  border-left-color: var(--success);
  background: #f0faf8;
}

.pp-q-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pp-question-item.pp-done .pp-q-number {
  background: var(--success);
}

.pp-q-title { flex: 1; font-weight: 500; font-size: 0.95rem; }

.pp-tick {
  color: var(--success);
  font-size: 1.4rem;
  font-weight: 800;
}

.pp-pending {
  color: var(--dark2);
  font-size: 1.2rem;
}

/* ===== Coding Modal ===== */
.pp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
  padding: 20px;
}

.pp-modal {
  background: white;
  border-radius: var(--radius);
  width: 95vw;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--light);
  background: var(--lighter);
}

.pp-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pp-modal-close:hover {
  background: var(--light);
  color: var(--danger);
}

.pp-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

.pp-modal-left {
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid var(--light);
}

.pp-modal-right {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pp-description h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.pp-description p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
}

.pp-sample-case {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
}

.pp-sample-case h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pp-sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pp-sample-grid strong {
  font-size: 0.78rem;
  color: var(--dark2);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pp-sample-grid pre {
  background: var(--dark);
  color: #55efc4;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
}

.pp-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pp-badge-easy { background: #d4f5e9; color: #00734d; }
.pp-badge-medium { background: #fff3cd; color: #856404; }
.pp-badge-hard { background: #ffe0d6; color: #c0392b; }

.pp-completed-badge {
  margin-top: 20px;
  padding: 12px 20px;
  background: #d4f5e9;
  color: #00734d;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pp-reset-btn {
  background: white;
  color: var(--danger);
  border: 1px solid var(--danger);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pp-reset-btn:hover {
  background: var(--danger);
  color: white;
}

/* Editor */
.pp-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.pp-code-editor {
  width: 100%;
  min-height: 250px;
  flex: 1;
  padding: 16px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  background: #1e1e2e;
  color: #cdd6f4;
  border: 2px solid var(--light);
  border-radius: var(--radius-sm);
  resize: vertical;
  tab-size: 4;
}

.pp-code-editor:focus {
  border-color: var(--primary);
  outline: none;
}

.pp-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Output area */
.pp-output-area {
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.pp-test-result {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.pp-test-result.pp-pass {
  background: #d4f5e9;
  color: #00734d;
  border-left: 4px solid var(--success);
}

.pp-test-result.pp-fail {
  background: #ffe0d6;
  color: #c0392b;
  border-left: 4px solid var(--danger);
}

.pp-test-result pre {
  margin: 6px 0 0;
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.05);
  padding: 6px 10px;
  border-radius: 4px;
}

.pp-test-detail {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 0.82rem;
}

.pp-test-detail code {
  background: rgba(0,0,0,0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

.pp-success-banner {
  padding: 14px 20px;
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1rem;
}

.pp-fail-banner {
  padding: 14px 20px;
  background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1rem;
}

.pp-info {
  padding: 10px 14px;
  background: #eee6ff;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.pp-error {
  padding: 10px 14px;
  background: #ffe0d6;
  color: #c0392b;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .pp-levels-grid { grid-template-columns: 1fr; }
  .pp-modal-body { grid-template-columns: 1fr; }
  .pp-modal-left { border-right: none; border-bottom: 1px solid var(--light); }
  .pp-modal { max-height: 95vh; }
  .pp-sample-grid { grid-template-columns: 1fr; }
}
