/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables & Styling Tokens (Clean Light Neutral Palette) */
:root {
  --bg-primary: #f8fafc; /* Slate 50 */
  --bg-secondary: #ffffff; /* Pure White */
  --accent-primary: #4f46e5; /* Elegant Royal Indigo */
  --accent-secondary: #0ea5e9; /* Clinical Sky Blue */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --error: #dc2626;
  --success: #059669;
  --warning: #d97706;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

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

/* Decorative Background Blobs - very subtle in light mode */
body::before, body::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

body::before {
  top: 5%;
  right: -5%;
  background: var(--accent-primary);
}

body::after {
  bottom: 15%;
  left: -5%;
  background: var(--accent-secondary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Navigation Bar */
header {
  width: 100%;
  height: 72px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: var(--transition-smooth);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.logo span {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--accent-primary);
  -webkit-text-fill-color: var(--accent-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Switcher Button */
.lang-btn {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.lang-btn:hover {
  background-color: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.15);
}

.lang-btn img {
  width: 18px;
  height: 18px;
  border-radius: 20%;
  object-fit: cover;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: var(--transition-smooth);
}

.hero {
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 4rem auto 2.5rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Glass Card styling */
.glass-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-primary);
  width: 100%;
  max-width: 700px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
}

/* Personal Intro Styling */
.intro-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intro-badge {
  align-self: center;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: justify;
}

.intro-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.25rem;
}

.author-info {
  text-align: center;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.btn {
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #3730a3 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.15);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-text:hover {
  color: #3730a3;
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  padding: 2.25rem;
  position: relative;
  transform: translateY(15px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Error/Success Messages */
.alert {
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.alert-error {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: var(--error);
}

.alert-success {
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.15);
  color: var(--success);
}

.alert-warning {
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid rgba(217, 119, 6, 0.15);
  color: var(--warning);
  display: flex;
}

/* User Profile / Dashboard Area */
.dashboard-view {
  width: 100%;
  max-width: 100%;
  display: none;
}

.dashboard-view.active {
  display: block;
}

/* Email Verification Panel */
.verification-panel {
  text-align: center;
  margin: 0 auto;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 1.5rem;
}

.icon-box-warning {
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.icon-box-success {
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.warning-card {
  margin-top: 1.5rem;
  text-align: left;
  border-left: 3px solid var(--warning);
  background: #fffbeb;
}

.warning-card h4 {
  color: var(--warning);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-card p {
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
}

/* Footer styling */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.35rem;
  }
  
  main {
    padding: 2rem 1.25rem;
  }
  
  .glass-card {
    padding: 1.75rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 800px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-banner-icon {
  font-size: 1.5rem;
}

.cookie-banner-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    bottom: 1rem;
  }
  
  .cookie-banner-content {
    align-items: flex-start;
  }
}

/* Info Modal Specifics */
.info-modal-container {
  max-width: 650px;
  width: 95%;
  padding: 2.25rem 2rem;
}

.info-modal-scrollable {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.75rem;
  margin-top: 1rem;
}

/* Custom Scrollbar for scrollable area */
.info-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}
.info-modal-scrollable::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 4px;
}
.info-modal-scrollable::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 4px;
}
.info-modal-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.25);
}

.info-personal-intro {
  background: #f1f5f9;
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-section h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.info-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-list {
  list-style: none;
  margin-top: 0.75rem;
}

.info-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}

.info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.25rem;
  line-height: 1.1;
}

/* Graphical Progress Bars (Chart) */
.chart-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.chart-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chart-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.chart-cat-name {
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
}

.chart-cat-pct {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.chart-bar {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.2);
}

/* PDF Download Card */
.pdf-download-card {
  background: #f8fafc;
  border: 1.5px dashed rgba(79, 70, 229, 0.25);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.pdf-download-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dashboard Study Notebook Layout */
.dashboard-layout {
  display: flex;
  width: 100%;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

/* Left Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  border-left: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 2px 0 10px rgba(15, 23, 42, 0.02);
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  z-index: 40;
  max-height: none;
  overflow-y: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-status {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-item:hover:not(.disabled):not(:disabled) {
  background-color: #f1f5f9;
  color: var(--text-primary);
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-item.disabled, .nav-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #94a3b8;
}

.nav-icon {
  font-size: 1.1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

/* Right Content Area */
.content-area {
  flex: 1;
  margin-left: 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 3.5rem;
  background-color: var(--bg-primary);
  min-height: calc(100vh - 72px);
}

/* Sub-screen Management */
.sub-screen {
  display: none;
  width: 100%;
  animation: notebookFadeIn 0.3s ease-in-out;
}

.sub-screen.active {
  display: block;
}

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

.section-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.welcome-card {
  max-width: 100%;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
}

/* Lesson Header & Body */
.lesson-header {
  margin-bottom: 1.5rem;
}

.lesson-tag {
  display: inline-block;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.lesson-title {
  font-size: 2.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.lesson-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lesson-paragraph {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: justify;
}

/* Lesson 1 Ethics Grid */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.ethics-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.ethics-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: var(--shadow-primary);
}

.ethics-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ethics-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
}

.ethics-card-header h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 600;
}

.ethics-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  flex-grow: 1;
}

.clinical-example {
  background: #f8fafc;
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.clinical-example strong {
  color: var(--text-primary);
}

/* Interactive Quiz Styling */
.quiz-container {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow-primary);
  margin-top: 1rem;
  border-top: 4px solid var(--accent-primary);
}

.quiz-container h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.quiz-question {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quiz-option:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: rgba(79, 70, 229, 0.25);
  transform: translateX(3px);
}

.quiz-option:focus {
  outline: none;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 1.5px solid var(--glass-border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.quiz-option:hover:not(:disabled) .option-letter {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Quiz Option States */
.quiz-option.correct {
  background: rgba(5, 150, 105, 0.06) !important;
  border-color: var(--success) !important;
  color: var(--success) !important;
}

.quiz-option.correct .option-letter {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #ffffff !important;
}

.quiz-option.incorrect {
  background: rgba(220, 38, 38, 0.06) !important;
  border-color: var(--error) !important;
  color: var(--error) !important;
}

.quiz-option.incorrect .option-letter {
  background: var(--error) !important;
  border-color: var(--error) !important;
  color: #ffffff !important;
}

.quiz-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Quiz Rationale Card */
.quiz-rationale {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  animation: notebookFadeIn 0.4s ease-in-out;
}

.quiz-rationale h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-rationale.correct-answer {
  border-left: 4px solid var(--success);
}

.quiz-rationale.correct-answer h4 {
  color: var(--success);
}

.quiz-rationale.incorrect-answer {
  border-left: 4px solid var(--error);
}

.quiz-rationale.incorrect-answer h4 {
  color: var(--error);
}

.quiz-rationale p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.quiz-rationale p strong {
  color: var(--text-primary);
}

.quiz-rationale ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.quiz-rationale li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Responsiveness for Study Dashboard & Mobile Experience */
@media (max-width: 992px) {
  .dashboard-layout {
    flex-direction: column;
    gap: 0;
  }
  
  .sidebar {
    width: 100%;
    position: sticky;
    top: 72px; /* Stays fixed below mobile header */
    z-index: 40;
    padding: 0.75rem 1rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-height: none;
    overflow-y: visible;
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
  }
  
  .sidebar-user {
    display: none;
  }
  
  .nav-section-title {
    display: none;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    gap: 0.5rem;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  
  .nav-item {
    width: auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .content-area {
    margin-left: 0;
    padding: 1.5rem 1.25rem;
    min-height: calc(100vh - 130px);
  }
  
  .ethics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  header {
    padding: 0 1.25rem;
  }
  
  .logo {
    font-size: 1.45rem;
  }
  
  .lang-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }
  
  main {
    padding: 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p.lead {
    font-size: 1rem;
  }
  
  .glass-card {
    padding: 1.5rem 1.25rem;
  }
  
  .lesson-title {
    font-size: 1.75rem;
  }
  
  .ethics-card {
    padding: 1.25rem;
  }
  
  .quiz-container {
    padding: 1.5rem 1.25rem;
  }
  
  .quiz-option {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}

