/* ==========================================================================
   ACADEX DESIGN SYSTEM & STYLESHEET
   Phase 1: Project Scaffold, Splash Screen, and Landing Page
   ========================================================================== */

/* Academic Prestige Workspace fonts (headlines: Newsreader / UI: Plus Jakarta Sans) */
/* Google Fonts artık style.css içinden @import edilmiyor (zincirleme, sayfayı bekleten istek; panel bu yazı tiplerini
   kullanmıyor). Kullanan sayfalar (legal, changelog, ders-agaci) <link> ile yüklüyor. */

/* 1. Design Tokens & CSS Custom Properties */
:root {
  /* Colors - "Academic Prestige Workspace" palette */
  --color-navy: #0F2537;        /* Oxford Navy - primary */
  --color-teal: #126E7A;        /* Academic Teal - secondary */
  --color-navy-dark: #081722;
  --color-teal-light: #EBF4F5;
  --color-amber: #D97706;       /* Amber Seal - sparse accent */
  --color-slate: #64748B;       /* Slate Neutral */
  --color-gradient: linear-gradient(135deg, #0F2537, #126E7A);
  --color-gradient-hover: linear-gradient(135deg, #126E7A, #0F2537);
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAF9;
  --color-text: #0F2537;
  --color-text-muted: #64748B;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-border-subtle: #E2E8F0;
  --color-border-strong: #CBD5E1;

  /* Layout & Spacing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  --max-width: 1200px;
  --header-height: 80px;

  /* Shadows - used sparingly; the design system prefers borders over shadows */
  --shadow-sm: 0 2px 4px rgba(15, 37, 55, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 37, 55, 0.08);
  --shadow-lg: 0 10px 24px rgba(15, 37, 55, 0.10);
  --shadow-hover: 0 10px 24px rgba(15, 37, 55, 0.10);

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-family-serif: 'Newsreader', Georgia, serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 2. CSS Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
}

/* 3. Utility Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
  padding: 6rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background: #1E3A52;
  border-color: #1E3A52;
}

.btn-outline {
  border-color: var(--color-teal);
  border-width: 1.5px;
  color: var(--color-teal);
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(18, 110, 122, 0.08);
  color: var(--color-teal);
}



/* 5. Sticky Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg);
  z-index: 1000;
  transition: box-shadow var(--transition-normal), border-bottom var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
}

/* Dashboard-specific top bar: flat Oxford Navy, no gradient or glow */
.dashboard-topbar {
  background: var(--color-navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
.dashboard-topbar .brand-logo {
  color: #fff !important;
  text-shadow: none;
}
.dashboard-topbar .user-name {
  color: #fff !important;
}
.dashboard-topbar .user-dept {
  color: rgba(255, 255, 255, 0.65) !important;
}
.dashboard-topbar .language-switcher {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.dashboard-topbar .language-switcher option {
  background: #1E293B;
  color: #fff;
}

/* Avatar style button (used in builder modal and registration) */
.avatar-style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem;
  border: 2px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(15, 37, 55, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-width: 68px;
}
.avatar-style-btn:hover {
  border-color: var(--color-teal);
  background: rgba(18, 110, 122, 0.08);
  transform: translateY(-2px);
}
.avatar-style-btn.active {
  border-color: var(--color-teal);
  background: rgba(18, 110, 122, 0.12);
  box-shadow: 0 0 0 2px rgba(18, 110, 122, 0.25);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-navy);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1010;
}

.menu-icon {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  transition: background-color var(--transition-normal);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  transition: transform var(--transition-normal), top var(--transition-normal);
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

/* Active hamburger icon */
.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 6. Hero Section */
.hero {
  margin-top: var(--header-height);
  padding: 5rem 0 6rem 0;
  overflow: hidden;
  position: relative; /* establishes containing block for blobs */
}

/* Hero gradient mesh blobs (Part A — mirrors splash blob style) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  will-change: transform;
  z-index: 0;
}
/* Reuse the same drift keyframes from splash (already defined above in the file) */
.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(15, 37, 55, 0.10) 0%, transparent 70%);
  top: -8%;
  left: -6%;
  animation: splash-blob-drift-1 12s ease-in-out infinite;
}
.hero-blob-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(18, 110, 122, 0.11) 0%, transparent 70%);
  bottom: -10%;
  right: -4%;
  animation: splash-blob-drift-2 10s ease-in-out infinite;
}
.hero-blob-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(15, 37, 55, 0.07) 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation: splash-blob-drift-3 14s ease-in-out infinite;
}
@media (max-width: 768px) {
  .hero-blob-1 { width: 300px; height: 300px; }
  .hero-blob-2 { width: 260px; height: 260px; }
  .hero-blob-3 { display: none; }
}
/* Freeze hero blobs for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none !important; }
}
/* Ensure hero content sits above blobs */
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Tablet Device Mockup styling */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tablet-mockup {
  width: 100%;
  max-width: 520px;
  background-color: #0d1117;
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 4px solid #1a202c;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  overflow: hidden;
}

/* Camera Bezel Dot */
.tablet-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #4a5568;
  z-index: 10;
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.tablet-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7. Departments Grid Section */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.dept-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 37, 55, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(18, 110, 122, 0.15);
}

.dept-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.dept-card:hover .dept-icon {
  transform: scale(1.1);
}

.dept-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.dept-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 8. How It Works Section */
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
}

/* Connecting line for steps (desktop only) */
.steps-container::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(18, 110, 122, 0.1);
  z-index: 1;
}

.step-card {
  flex: 1;
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 37, 55, 0.04);
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  position: absolute;
  top: -15px;
  width: 32px;
  height: 32px;
  background: var(--color-gradient);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(15, 37, 55, 0.2);
}

.step-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-alt);
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal);
}

.step-card:hover .step-icon {
  background-color: var(--color-teal);
  color: var(--color-white);
  transform: rotate(5deg);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 9. Footer */
.footer {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-info {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-teal);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-teal);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* 10. Placeholder Pages Style */
.placeholder-main {
  margin-top: var(--header-height);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  padding: 4rem 1.5rem;
}

.placeholder-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(15, 37, 55, 0.04);
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
}

.placeholder-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.placeholder-text {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 11. Responsiveness & Media Queries */

/* Tablet Screens (1024px and down) */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Mobile Screens (768px and down) */
@media (max-width: 768px) {
  /* Header & Navigation Menu Overlay */
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overscroll-behavior: contain;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .nav-actions .btn {
    width: 100%;
  }

  /* Hero adjustments */
  .hero {
    padding: 3rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .tablet-mockup {
    margin: 0 auto;
  }

  /* How it works connection line removed */
  .steps-container {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .steps-container::before {
    display: none;
  }

  /* Footer grid adjust */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobiles (480px and down) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .placeholder-card {
    padding: 3rem 1.5rem;
  }
  .placeholder-title {
    font-size: 1.75rem;
  }

}

/* Accessibility / Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   SPLASH SCREEN — Premium Animated Intro
   ========================================================================== */

/* --- Blob drift keyframes --- */
@keyframes splash-blob-drift-1 {
  0%   { transform: translate(0, 0)      scale(1);    }
  33%  { transform: translate(4%, -3%)   scale(1.06); }
  66%  { transform: translate(-3%, 5%)   scale(0.95); }
  100% { transform: translate(0, 0)      scale(1);    }
}
@keyframes splash-blob-drift-2 {
  0%   { transform: translate(0, 0)      scale(1);    }
  33%  { transform: translate(-5%, 4%)   scale(1.08); }
  66%  { transform: translate(3%, -4%)   scale(0.93); }
  100% { transform: translate(0, 0)      scale(1);    }
}
@keyframes splash-blob-drift-3 {
  0%   { transform: translate(0, 0)      scale(1);    }
  40%  { transform: translate(3%, 3%)    scale(1.05); }
  75%  { transform: translate(-2%, -5%)  scale(0.96); }
  100% { transform: translate(0, 0)      scale(1);    }
}

/* --- Icon clip-path wipe reveal --- */
@keyframes splash-icon-reveal {
  0%   {
    clip-path: circle(0%  at 50% 50%);
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    clip-path: circle(75% at 50% 50%);
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Individual letter rise --- */
@keyframes splash-letter-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Slogan rise --- */
@keyframes splash-slogan-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Progress bar fill --- */
@keyframes splash-progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* --- Base overlay --- */
#splash {
  position: fixed;
  inset: 0;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  text-align: center;
  /* Exit transition handled by JS adding .splash-exit */
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.55s ease;
}
#splash.splash-exit {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* --- Gradient blobs --- */
.splash-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  pointer-events: none;
}
.splash-blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(15, 37, 55, 0.11) 0%, transparent 70%);
  top: -10%;
  left: -8%;
  animation: splash-blob-drift-1 11s ease-in-out infinite;
}
.splash-blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(18, 110, 122, 0.12) 0%, transparent 70%);
  bottom: -12%;
  right: -6%;
  animation: splash-blob-drift-2 9s ease-in-out infinite;
}
.splash-blob-3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(15, 37, 55, 0.08) 0%, transparent 70%);
  top: 45%;
  right: 15%;
  animation: splash-blob-drift-3 13s ease-in-out infinite;
}
@media (max-width: 576px) {
  .splash-blob-1 { width: 280px; height: 280px; }
  .splash-blob-2 { width: 240px; height: 240px; }
  .splash-blob-3 { width: 200px; height: 200px; }
}

/* --- Content group (scale on exit) --- */
.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  /* Exit scale handled via JS + CSS class */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash.splash-exit .splash-content {
  transform: scale(1.03);
  opacity: 0;
}

/* --- Icon wrapper --- */
.splash-icon-wrap {
  width: 290px;
  height: auto;
  aspect-ratio: 485 / 380;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Initial hidden state — JS adds .reveal */
  opacity: 0;
}
.splash-icon-wrap.reveal {
  animation: splash-icon-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.splash-icon {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 576px) {
  .splash-icon-wrap {
    width: 190px;
    margin-bottom: 24px;
  }
}

/* --- Wordmark --- */
.splash-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  /* Gradient text */
  background: linear-gradient(135deg, var(--color-navy) 30%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.splash-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  /* animation applied per-letter via JS or nth-child delays */
}
.splash-letter.reveal {
  animation: splash-letter-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Slogan --- */
.splash-slogan {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 500;
  color: var(--color-navy);
  max-width: 480px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  margin: 0 0 24px 0;
  padding: 0 16px;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.splash-slogan.reveal {
  opacity: 1;
  transform: translateY(0);
}
.splash-slogan span {
  color: var(--color-teal);
  font-weight: 700;
}

/* --- Progress bar --- */
.splash-progress-track {
  width: min(280px, 70vw);
  height: 2px;
  background: rgba(15, 37, 55, 0.1);
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.splash-progress-track.reveal {
  opacity: 1;
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal));
  /* Duration controlled by JS via CSS custom property */
  animation: splash-progress-fill var(--splash-progress-duration, 1600ms) linear forwards;
  animation-play-state: paused; /* started by JS */
}
.splash-progress-fill.running {
  animation-play-state: running;
}

/* --- Skip button --- */
#skip-intro {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: none;
  border: 1px solid rgba(15, 37, 55, 0.18);
  border-radius: 20px;
  color: var(--color-text-muted);
  opacity: 0.7;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
  z-index: 10000;
}
#skip-intro:hover,
#skip-intro:focus-visible {
  opacity: 1;
  color: var(--color-navy);
  border-color: var(--color-navy);
  outline: none;
}

/* --- Reduced motion: instant reveal, no animation --- */
@media (prefers-reduced-motion: reduce) {
  .splash-blob                { animation: none !important; }
  .splash-icon-wrap.reveal    { animation: none !important; opacity: 1; }
  .splash-icon-wrap           { opacity: 1; }
  .splash-letter              { opacity: 1; transform: none; animation: none !important; }
  .splash-letter.reveal       { animation: none !important; }
  .splash-slogan,
  .splash-slogan.reveal       { opacity: 1; transform: none; transition: none !important; }
  .splash-progress-track.reveal { opacity: 1; }
  .splash-progress-fill       { animation: none !important; width: 100%; }
  #splash.splash-exit         { transition: none !important; opacity: 0; }
  .splash-content             { transition: none !important; }
}

.brand-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  display: inline-block;
  animation: brandPulse 2.5s ease-in-out infinite alternate;
}
@keyframes brandPulse {
  from { opacity: 1; }
  to { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo { animation: none; opacity: 1; }
}

/* ==========================================
   ACADEX AUTHENTICATION FORM CARD STYLING
   ========================================== */
.auth-main {
  margin-top: var(--header-height);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  padding: 4rem 1.5rem;
}

/* Two-panel "Academic Prestige" auth layout: a dark Oxford Navy brand panel
   beside the actual form card, matching the Stitch giriş/kayıt/şifre
   screens. Purely decorative — no ids, doesn't touch anything auth.js
   depends on — so it's additive on any auth page that opts in via
   .auth-shell without risking the form logic. Pages that don't wrap their
   .auth-card in .auth-shell (existing behavior) are unaffected. */
.auth-shell {
  display: flex;
  width: 100%;
  max-width: 920px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-md);
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  width: 320px;
  flex-shrink: 0;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 2.5rem 2rem;
}

.auth-brand-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FB4C7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
}

.auth-brand-name {
  font-family: var(--font-family-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 1.25rem;
}

.auth-brand-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #B9C7D4;
  margin-top: 0.5rem;
}

.auth-brand-stats {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

.auth-brand-stat-num {
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFFFF;
}

.auth-brand-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8FA3B5;
}

.auth-card {
  background-color: var(--color-white);
  border-radius: 0;
  box-shadow: none;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  border: none;
  display: flex;
  flex-direction: column;
}

/* Standalone auth-card (not inside .auth-shell) keeps its own card chrome —
   e.g. reset-password.html's single-panel "set new password" screen. */
.auth-main > .auth-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-subtle);
}

@media (max-width: 760px) {
  .auth-shell {
    flex-direction: column;
    max-width: 440px;
  }
  .auth-brand-panel {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
  }
  .auth-brand-name { font-size: 1.3rem; margin-top: 0; }
  .auth-brand-desc, .auth-brand-stats { display: none; }
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* ==========================================
   LOGIN MODE TABS (Student / Academic)
   ========================================== */
.login-mode-tabs {
  display: flex;
  gap: 0.35rem;
  background-color: var(--color-bg-alt);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
}

.login-mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.login-mode-tab:hover {
  color: var(--color-navy);
}

.login-mode-tab.active {
  background-color: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.login-mode-icon {
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 400px) {
  .login-mode-tab span:not(.login-mode-icon) {
    font-size: 0.75rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(15, 37, 55, 0.15);
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(18, 110, 122, 0.15);
}

.form-control.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  font-weight: 500;
  margin-top: 0.25rem;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.alert-error {
  background-color: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.alert-success {
  background-color: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-footer a {
  color: var(--color-teal);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================
   ACADEX STUDENT DASHBOARD LAYOUT & UI STYLES
   ========================================== */
.user-profile-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  margin-right: 1.5rem;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.user-dept {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.dashboard-layout {
  margin-top: var(--header-height);
  display: flex;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  background-color: var(--color-bg-alt);
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: var(--color-navy);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  padding: 2.5rem 1.5rem;
}

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

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #94A3B8;
  transition: all var(--transition-fast);
}

.sidebar-item.active a {
  background-color: var(--color-teal);
  color: #FFFFFF;
}

.sidebar-item:not(.active):hover a {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.sidebar-item.disabled a {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Main Content Panel */
.dashboard-content {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.dashboard-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-page-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

.dashboard-page-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Drag & Drop Upload Zone */
.upload-zone {
  background-color: var(--color-white);
  border: 2px dashed rgba(18, 110, 122, 0.25);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  outline: none;
}

.upload-zone:focus-within,
.upload-zone.dragover {
  border-color: var(--color-teal);
  background-color: var(--color-teal-light);
}

.upload-zone-icon {
  width: 48px;
  height: 48px;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.upload-zone-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.upload-zone-subtext {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Progress Indicators */
.progress-container {
  width: 100%;
  background-color: rgba(18, 110, 122, 0.1);
  height: 6px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0.5rem;
  display: none;
}

.progress-bar {
  background: var(--color-gradient);
  height: 100%;
  width: 0%;
  transition: width 0.1s ease;
}

/* Document Lists & Cards */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.doc-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--color-border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition-fast);
  position: relative;
}

.doc-card:hover {
  border-color: var(--color-border-strong);
}

.sandbox-preview-frame:hover {
  border-color: var(--color-teal);
}

.doc-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.doc-file-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-file-icon.pdf { background-color: #FEF2F2; color: #EF4444; }
.doc-file-icon.word { background-color: #EFF6FF; color: #3B82F6; }
.doc-file-icon.powerpoint { background-color: #FFF7ED; color: #F97316; }
.doc-file-icon.text { background-color: #F9FAFB; color: #6B7280; }

.doc-info {
  min-width: 0; /* lets text overflow wrap */
  flex: 1;
}

.doc-name {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.15rem;
}

.doc-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
}

.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(15, 37, 55, 0.06);
  padding-top: 1rem;
}

.doc-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background-color: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.doc-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-navy);
}

.btn-icon.btn-delete:hover {
  background-color: #FEF2F2;
  color: #EF4444;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 37, 55, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 480px;
  margin: 3rem auto;
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: rgba(18, 110, 122, 0.2);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Custom HTML Confirm Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 37, 55, 0.45);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast) ease-out;
}

.modal-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-navy);
  box-shadow: none;
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: scale(0.95);
  transition: transform var(--transition-fast) ease-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
}

.modal-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
}

/* responsive queries */
@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
  }
  
  .sidebar-item a {
    padding: 0.6rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
  }
  
  .dashboard-content {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================
   ACADEX STUDY CARD VIEWER MODAL & STATES
   ========================================== */
.study-card-modal-card {
  max-width: 800px;
  width: 100%;
  height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.study-card-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
  background-color: var(--color-navy);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.study-card-modal-header .modal-title {
  color: var(--color-white);
  margin: 0;
  font-size: 1.25rem;
}

.study-card-modal-header #btn-close-study-card {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.study-card-modal-header #btn-close-study-card:hover {
  color: var(--color-white);
}

.study-card-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
}

.study-card-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.study-card-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-teal-light);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.study-card-section-title .section-icon {
  color: var(--color-teal);
}

.study-card-summary-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Key Terms Grid */
.key-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.key-term-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-teal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.key-term-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.key-term-word {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.key-term-def {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Key Points */
.study-card-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.study-card-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.study-card-point-item svg {
  color: var(--color-teal);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Quiz questions */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-item {
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.quiz-item:hover {
  border-color: rgba(18, 110, 122, 0.3);
  box-shadow: var(--shadow-sm);
}

.quiz-question-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.95rem;
  gap: 1rem;
  user-select: none;
}

.quiz-question-header svg {
  transition: transform var(--transition-fast);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.quiz-item.active .quiz-question-header svg {
  transform: rotate(180deg);
  color: var(--color-teal);
}

.quiz-answer-body {
  padding: 1.25rem;
  display: none;
  border-top: 1px solid rgba(15, 37, 55, 0.05);
  background-color: var(--color-white);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}

.quiz-item.active .quiz-answer-body {
  display: block;
  animation: slideDown var(--transition-fast) ease-out;
}

/* Fail note on card */
.card-failure-note {
  color: #EF4444;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .study-card-modal-card {
    height: 90vh;
  }
  
  .study-card-modal-body {
    padding: 1.5rem 1.5rem;
    gap: 2rem;
  }
}

/* ==========================================
   ACADEX PHASE 5 VIEWS, BADGES, TOGGLES & SEARCH
   ========================================== */
.dept-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.dept-mis { background-color: rgba(99, 102, 241, 0.12); color: #6366F1; border: 1px solid rgba(99, 102, 241, 0.2); }
.dept-ba { background-color: rgba(217, 119, 6, 0.12); color: #D97706; border: 1px solid rgba(217, 119, 6, 0.2); }
.dept-itb { background-color: rgba(13, 148, 136, 0.12); color: #0D9488; border: 1px solid rgba(13, 148, 136, 0.2); }
.dept-bf { background-color: rgba(225, 29, 72, 0.12); color: #E11D48; border: 1px solid rgba(225, 29, 72, 0.2); }

.welcome-banner {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.welcome-greeting {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Switcher Toggle Checkbox */
.share-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--color-text);
  font-weight: 700;
  background-color: var(--color-bg-alt);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  width: 100%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D1D5DB;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider {
  background-color: var(--color-teal);
}

input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(18, 110, 122, 0.15);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Search Bar */
.search-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 480px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 37, 55, 0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-navy);
  background-color: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(18, 110, 122, 0.1);
}

/* View Section Control */
#dashboard-alert-container:empty,
#admin-alert-container:empty,
#home-exam-banners-container:empty,
#students-error-container:empty,
#password-error-message:empty,
#exam-empty-state:empty {
  display: none !important;
}

.dashboard-view-section {
  display: none;
  animation: fadeIn var(--transition-normal) ease-in-out;
}

.dashboard-view-section.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

/* Card Sharing Elements */
.card-shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
  background-color: var(--color-teal-light);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.feed-card-sharer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.feed-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   ACADEX PHASE 5B INTERACTIVE DRAWING NOTEBOOK
   ========================================== */
.notebook-workspace-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  align-items: flex-start;
}

.notebook-left-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.notebook-main-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc(100% - 312px);
}

.notebook-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.1);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.notebook-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid rgba(15, 37, 55, 0.1);
  padding-right: 0.75rem;
}

.notebook-toolbar-group:last-child {
  border-right: none;
  padding-right: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 37, 55, 0.15);
  background-color: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-teal);
}

.tool-btn.active {
  background-color: var(--color-teal-light);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* Color Presets Swatches */
.swatch-container {
  display: flex;
  gap: 0.35rem;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  outline: 1px solid #D1D5DB;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

/* Slider and selects */
.brush-slider-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brush-slider {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  outline: none;
  accent-color: var(--color-teal);
}

.font-size-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 37, 55, 0.15);
  color: var(--color-navy);
  outline: none;
  background-color: var(--color-white);
}

/* Whiteboard elements container */
.canvas-viewport {
  position: relative;
  width: 100%;
  min-height: 700px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#notebook-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 1;
}

#notebook-overlay-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.draggable-element {
  position: absolute;
  pointer-events: auto;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition-fast);
  background-color: var(--color-white);
}

.draggable-element:hover {
  box-shadow: 0 6px 16px rgba(15, 37, 55, 0.12);
}

/* Drag Handles */
.drag-handle-bar {
  height: 18px;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  user-select: none;
}

.drag-handle-bar:after {
  content: "••••";
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
}

/* Delete element button */
.delete-overlay-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 900;
  transition: all var(--transition-fast);
  z-index: 10;
}

.delete-overlay-btn:hover {
  background-color: #EF4444;
  color: var(--color-white);
}

/* Sticky Yellow Notes */
.draggable-note {
  width: 220px;
  min-height: 220px;
  background-color: #FEF9C3;
  border: 1px solid #FEF08A;
  padding: 1.25rem 1rem 1rem 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  cursor: move;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
}

.draggable-note-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #713F12;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.draggable-note-text {
  font-size: 0.725rem;
  color: #854D0E;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.draggable-note-footer {
  font-size: 0.65rem;
  color: #A16207;
  margin-top: 0.5rem;
  text-align: right;
  font-weight: 700;
}

/* Editable Table overlay */
.draggable-table-wrapper {
  border: 1px solid rgba(15, 37, 55, 0.12);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-white);
  z-index: 5;
}

.draggable-table-wrapper table {
  border-collapse: collapse;
  width: 100%;
  min-width: 200px;
}

.draggable-table-wrapper th, 
.draggable-table-wrapper td {
  border: 1px solid rgba(15, 37, 55, 0.15);
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  color: var(--color-navy);
  min-width: 50px;
  min-height: 24px;
  outline: none;
  background-color: var(--color-white);
}

.draggable-table-wrapper td:focus {
  background-color: var(--color-bg-alt);
  box-shadow: inset 0 0 0 2px var(--color-teal);
}

/* Editable text overlays */
.draggable-text-box {
  padding: 0.25rem 0.5rem;
  outline: none;
  font-weight: 500;
  line-height: 1.4;
  min-width: 80px;
  min-height: 28px;
  border: 1px dashed transparent;
  z-index: 5;
}

.draggable-text-box:hover {
  border-color: rgba(15, 37, 55, 0.15);
  background-color: rgba(15, 37, 55, 0.01);
}

.draggable-text-box:focus {
  border-color: var(--color-teal);
  background-color: var(--color-white);
  box-shadow: 0 2px 6px rgba(15, 37, 55, 0.1);
}

/* Large screen viewport indicator */
.notebook-screen-notice {
  display: none;
  background-color: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: 100%;
}

@media (max-width: 992px) {
  .notebook-screen-notice {
    display: block;
  }
}

.save-hint-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: auto;
  font-weight: 500;
}

/* ==========================================
   ACADEX PHASE 5C STYLES
   ========================================== */
.sidebar-summary-box {
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.725rem;
  color: var(--color-text);
  line-height: 1.4;
  background-color: var(--color-bg-alt);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin: 0.25rem 0 0.5rem 0;
  border: 1px solid rgba(15, 37, 55, 0.04);
}

.card-library-summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  max-height: 150px;
  overflow-y: auto;
  margin: 0.5rem 0;
  border: 1px solid rgba(15, 37, 55, 0.05);
}

/* Accordion styles */
.accordion-item {
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--color-bg-alt);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(15, 37, 55, 0.05);
}

.accordion-header svg {
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0.75rem;
  background-color: var(--color-white);
  border-top: 1px solid rgba(15, 37, 55, 0.05);
  /* No max-height/overflow here on purpose (removed as part of the Bilgi
     Kartları master–detail redesign, js/dashboard.js buildLibraryDetailHtml):
     this accordion is only ever used inside .lib-md-detail now, which is
     itself the one scroll region for a card's whole detail. A second,
     independently-scrolling box nested inside it was exactly the "scrolling
     inside scrolling" eye strain the redesign was requested to fix. */
  animation: slideDown var(--transition-fast) ease-out;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* ==========================================
   BİLGİ KARTLARI — Ana–Detay ikili panel (master–detail)
   Kütüphanedeki eski yoğun kart gridinin yerini alır: solda sade, tek
   satırlık bir dosya listesi; sağda yalnızca seçili kartın tam içeriği.
   Aynı anda ekranda görünen kart sayısı 1'e iner ve hiçbir iç kutunun
   kendi kaydırma çubuğu olmaz — sayfanın tamamı tek bir scroll alanı
   (sağdaki .lib-md-detail) etrafında düzenlenir. js/dashboard.js,
   renderCardsLibraryList / buildLibraryDetailHtml.
   ========================================== */
.lib-md-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

.lib-md-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem;
  max-height: calc(100vh - 320px);
  min-height: 280px;
  overflow-y: auto;
  position: sticky;
  top: 1rem;
}

.lib-md-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 0.6rem 0.6rem 0.15rem;
}

.lib-md-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.lib-md-item:hover {
  background-color: var(--color-bg-alt);
}

.lib-md-item.active {
  background-color: var(--color-teal-light);
  border-color: rgba(18, 110, 122, 0.3);
}

.lib-md-item-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-md-item-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.lib-md-item-counts {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.lib-md-item-counts b {
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.lib-md-detail {
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.lib-detail-header {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

.lib-detail-summary {
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(15, 37, 55, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}

.lib-md-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .lib-md-shell {
    grid-template-columns: 1fr;
  }
  .lib-md-list {
    position: static;
    max-height: 340px;
  }
}

/* Per-card progress bar in the master list (replaces the old plain
   terms/points/quiz count line whenever the card has reviewable items —
   percent comes from getCardProgressStats(), real card_item_confidence
   rows, never a placeholder). */
.lib-md-item-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.lib-md-item-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background-color: rgba(15, 37, 55, 0.08);
  overflow: hidden;
}
.lib-md-item-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-teal);
  transition: width var(--transition-fast);
}
.lib-md-item-progress-pct {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-teal);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}

.style-badge.lib-progress-badge {
  background-color: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
  text-transform: none;
}

/* "Tümü / Devam eden / Yeni" status filter chips above the master list. */
.cards-status-chips {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.cards-status-chip {
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-navy);
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.cards-status-chip:hover {
  border-color: var(--color-teal);
}
.cards-status-chip.active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* ==========================================
   BİLGİ KARTLARI — step-through summary ("ÖZET · ADIM X/N") and the
   "ÇALIŞMAYA BAŞLA" mode-launcher grid. Sits at the top of .lib-md-detail,
   above the (now collapsed-by-default) full accordion set — see
   js/dashboard.js buildLibraryStepAreaHtml / buildLibraryModeGridHtml /
   buildLibraryDetailHtml.
   ========================================== */
.lib-step-area {
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-bg-alt) 100%);
  border: 1px solid rgba(18, 110, 122, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0.9rem 0 1rem;
}
.lib-step-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.lib-step-heading {
  margin: 0.35rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
}
.lib-step-body {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-navy);
}
.lib-step-terms-label {
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.lib-step-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.lib-step-term-chip {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-teal);
  background-color: var(--color-white);
  border: 1px solid rgba(18, 110, 122, 0.25);
  border-radius: 999px;
  cursor: default;
}
.lib-step-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.lib-step-nav-btn {
  flex-shrink: 0;
  border: 1px solid rgba(15, 37, 55, 0.15);
  background-color: var(--color-white);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}
.lib-step-nav-btn:hover:not(:disabled) {
  background-color: var(--color-teal-light);
}
.lib-step-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lib-step-nav-next {
  margin-left: auto;
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}
.lib-step-nav-next:hover:not(:disabled) {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
}
.lib-step-dots {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.lib-step-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background-color: rgba(15, 37, 55, 0.15);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.lib-step-dot:hover {
  background-color: rgba(18, 110, 122, 0.5);
}
.lib-step-dot.active {
  background-color: var(--color-teal);
  transform: scale(1.3);
}

.lib-mode-grid-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 0.55rem;
}
.lib-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.lib-mode-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.lib-mode-tile:hover:not(:disabled) {
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.lib-mode-tile:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lib-mode-tile-count {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-teal);
  font-variant-numeric: tabular-nums;
}
.lib-mode-tile-icon {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}
.lib-mode-tile-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-navy);
}
.lib-mode-tile-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Collapsed-by-default "Tüm İçerik" disclosure wrapping the original
   accordion set (terms/points/quiz/cloze + share toggle + Özeti Görüntüle /
   Panoya Ekle) — none of that functionality was removed, it's just no
   longer the first thing on screen now that the step-through summary and
   mode grid above cover the primary "what do I study right now" job. */
.lib-full-content {
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(15, 37, 55, 0.12);
  padding-top: 0.75rem;
}
.lib-full-content summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-navy);
  list-style: revert;
  padding: 0.2rem 0;
  user-select: none;
}
.lib-full-content summary::marker {
  color: var(--color-teal);
}
.lib-full-content-hint {
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: none;
  font-size: 0.72rem;
}

/* Full-width cross-card "Akıllı Tekrar" forecast widget, below the
   master–detail shell — js/dashboard.js renderGlobalReviewWidget(). */
.lib-global-review {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1F3A5F 100%);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.lib-global-review-info {
  flex: 1 1 200px;
  min-width: 180px;
}
.lib-global-review-title {
  font-size: 1rem;
  font-weight: 800;
}
.lib-global-review-sub {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}
.lib-global-review-forecast {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.lib-forecast-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.6rem;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
}
.lib-forecast-pill.has-due {
  background-color: rgba(45, 212, 191, 0.22);
}
.lib-forecast-day {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
}
.lib-forecast-count {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lib-forecast-pill.has-due .lib-forecast-count {
  color: var(--color-teal);
}
.lib-global-review-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lib-global-review {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .lib-global-review-forecast {
    justify-content: center;
  }
  .lib-global-review-btn {
    width: 100%;
  }
}

/* Text overlays improvements */
.draggable-text-box {
  border: 1px dashed transparent;
  background-color: transparent;
  box-shadow: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 80px;
  min-height: 28px;
}

.draggable-text-box:hover {
  border-color: rgba(15, 37, 55, 0.15) !important;
}

.draggable-text-box.editing {
  border: 1px dashed var(--color-teal) !important;
  background-color: var(--color-white) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Hide delete button by default, show on element hover */
.draggable-element .delete-overlay-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.draggable-element:hover .delete-overlay-btn {
  opacity: 1;
  pointer-events: auto;
}
}

/* ==========================================
   PHASE 6: EXAM PLATFORM STYLE SHEET
   ========================================== */
.exam-type-option {
  position: relative;
}
.exam-type-option input[type="radio"]:checked + .option-box {
  border-color: var(--color-teal);
  background-color: var(--color-teal-light);
  box-shadow: 0 0 0 2px rgba(26, 178, 175, 0.15);
}
.option-box {
  padding: 1.25rem;
  background-color: var(--color-bg);
  border: 2px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
}
.option-box strong {
  font-size: 0.9rem;
  color: var(--color-navy);
}
.option-box span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}
.exam-type-option:hover .option-box {
  border-color: rgba(15, 37, 55, 0.15);
}

.past-attempt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 37, 55, 0.06);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.past-attempt-item:hover {
  background-color: rgba(15, 37, 55, 0.04);
}
.past-attempt-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.past-attempt-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.past-attempt-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-teal);
}

.exam-question-card {
  padding: 1.5rem;
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.exam-question-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

.exam-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.exam-choice-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
}
.exam-choice-label:hover {
  background-color: rgba(15, 37, 55, 0.04);
}
.exam-choice-label input[type="radio"]:checked + span {
  color: var(--color-teal);
}
.exam-choice-label.selected {
  border-color: var(--color-teal);
  background-color: var(--color-teal-light);
  color: var(--color-teal);
}

.exam-hint-box {
  padding: 0.75rem 1rem;
  background-color: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #92400E;
  margin-top: 0.5rem;
}

.question-result-box {
  padding: 1.5rem;
  background-color: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.question-result-box.correct {
  border-left: 5px solid var(--color-teal);
}
.question-result-box.incorrect {
  border-left: 5px solid #EF4444;
}
.question-result-box.partial {
  border-left: 5px solid #F59E0B;
}

/* Choose Summary Style Cards */
.style-choice-card {
  transition: all 0.2s ease-in-out;
}
.style-choice-card:hover {
  border-color: rgba(15, 37, 55, 0.25) !important;
  background-color: var(--color-bg-alt) !important;
}
.style-choice-card:has(input:checked) {
  border-color: var(--color-teal) !important;
  background-color: var(--color-teal-light) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.style-choice-card input[type="radio"] {
  accent-color: var(--color-teal);
  width: 16px;
  height: 16px;
}

/* Summary Style Badges */
.style-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-left: 0.5rem;
  text-transform: uppercase;
}
.style-badge.style-standard {
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  border-color: rgba(5, 150, 105, 0.25);
}
.style-badge.style-bullet {
  background-color: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}
.style-badge.style-outline {
  background-color: #FEF3C7;
  color: #D97706;
  border-color: #FDE68A;
}
.style-badge.style-simplified {
  background-color: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}
.style-badge.style-exam_focused {
  background-color: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

/* ==========================================
   GUIDED ONBOARDING TOUR STYLES (PHASE 8)
   ========================================== */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* very light backing because spotlight does the main shadowing */
  z-index: 99999;
  display: none;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}
.tour-overlay.active {
  display: block;
}
.tour-spotlight {
  position: fixed;
  box-shadow: 0 0 0 9999px rgba(10, 25, 47, 0.75); /* Dark navy mask overlay */
  border-radius: var(--radius-md);
  border: 2px solid var(--color-teal);
  box-sizing: border-box;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 100000;
  box-shadow: 0 0 0 9999px rgba(10, 25, 47, 0.75), 0 0 15px var(--color-teal);
}
.tour-tooltip {
  position: fixed;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  width: 320px;
  z-index: 100001;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(15, 37, 55, 0.08);
}
.tour-tooltip-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  font-family: 'Outfit', sans-serif;
}
.tour-tooltip-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}
.tour-tooltip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tour-tooltip-buttons {
  display: flex;
  gap: 0.5rem;
}
.tour-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.tour-btn.btn-next {
  background: var(--color-teal);
  color: var(--color-white);
}
.tour-btn.btn-next:hover {
  background: var(--color-teal-dark);
}
.tour-btn.btn-back {
  background: var(--color-bg-alt);
  color: var(--color-navy);
  border: 1px solid rgba(15, 37, 55, 0.1);
}
.tour-btn.btn-back:hover {
  background: rgba(15, 37, 55, 0.05);
}
.tour-btn.btn-skip {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0.4rem 0;
}
.tour-btn.btn-skip:hover {
  color: var(--color-teal);
}
.tour-steps-indicator {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ==================================================
   DARK MODE REMOVED (PHASE 18)
   ================================================== */

/* Global Search Modal Styles */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1.5rem;
  transition: all 0.3s ease;
}
.search-overlay.active {
  display: flex;
}
.search-modal {
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 37, 55, 0.08);
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: searchSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes searchSlideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.search-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.search-input-field {
  width: 100%;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  outline: none;
}

.search-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.search-close-btn:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-navy);
}
.search-results-body {
  max-height: 450px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.search-results-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.04);
  padding-bottom: 0.25rem;
}
.search-results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
  color: var(--color-navy);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.search-result-item:hover {
  background-color: var(--color-white);
  border-color: var(--color-teal);
  transform: translateX(4px);
}
.search-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  flex-shrink: 0;
}
.search-result-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-subtext {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.search-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==================================================
   INDIVIDUAL MINI-CARDS & DEPOT DRAWER (PHASE 10)
   ================================================== */
.mini-card {
  background-color: var(--color-bg);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mini-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.btn-mini-action {
  font-size: 0.7rem !important;
  padding: 0.25rem 0.5rem !important;
  min-height: auto !important;
  line-height: 1 !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-mini-send {
  background-color: var(--color-teal-light);
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
}
.btn-mini-send:hover {
  background-color: var(--color-teal);
  color: white;
}
.btn-mini-close {
  background: none;
  border: 1px solid #EF4444;
  color: #EF4444;
}
.btn-mini-close:hover {
  background-color: #EF4444;
  color: white;
}

/* Collapsible Depot Modal (Phase 11 Revisions) */
#depot-modal, #flashcard-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Flashcard Viewer Animations */
.flashcard-card {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
.flashcard-card.slide-out-left {
  transform: translateX(-150px) rotate(-5deg);
  opacity: 0;
}
.flashcard-card.slide-in-right {
  transform: translateX(150px) rotate(5deg);
  opacity: 0;
}

/* Staging Card Item inside Drawer list */
.depot-item-card {
  background-color: var(--color-bg);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.depot-item-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.depot-item-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  width: fit-content;
}
.depot-tag-term {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--color-navy);
}
.depot-tag-point {
  background-color: rgba(45, 212, 191, 0.15);
  color: var(--color-teal);
}
.depot-tag-question {
  background-color: rgba(139, 92, 246, 0.15);
  color: #8B5CF6;
}

.depot-item-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text);
  margin-top: 0.15rem;
}
.depot-item-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  word-break: break-word;
}
.depot-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.depot-item-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.depot-item-close:hover {
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.08);
}
.depot-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ==========================================
   ACHIEVEMENTS SYSTEM STYLES (PHASE 12)
   ========================================== */
@keyframes achievementSlideIn {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes achievementSlideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes badgeBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background-color: var(--color-bg);
  border: 1px solid rgba(15, 37, 55, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.achievement-card.locked {
  opacity: 0.65;
  filter: grayscale(1);
}

.achievement-icon-wrapper {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-details {
  flex-grow: 1;
  min-width: 0;
}

.achievement-details h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 0.15rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-details p {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.3;
}

.achievement-card .lock-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* ==========================================
   PHASE 14 ACCESSIBILITY & UTILITY STYLES
   ========================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background-color: var(--color-teal);
  color: white !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 999999;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.lang-switcher-select {
  background-color: var(--color-bg) !important;
  border: 1px solid rgba(15, 37, 55, 0.15) !important;
  color: var(--color-navy) !important;
  font-family: inherit;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  height: 36px;
  min-width: 60px;
}
.lang-switcher-select:hover, .lang-switcher-select:focus {
  border-color: var(--color-teal) !important;
}

/* High contrast color overrides for low contrast violations */
.style-badge.style-standard {
  background-color: rgba(15, 37, 55, 0.1);
  color: var(--color-navy);
}
.style-badge.style-eli5 {
  background-color: #FEF3C7;
  color: #B45309; /* High-contrast dark amber */
}
.style-badge.style-qa {
  background-color: #D1FAE5;
  color: #065F46; /* High-contrast dark green */
}

/* Password strength elements */
.strength-weak {
  background-color: #EF4444 !important;
}
.strength-medium {
  background-color: #F59E0B !important;
}
.strength-strong {
  background-color: #10B981 !important;
}

/* Button variants (Phase 16A) */
.btn-destructive {
  background-color: #EF4444 !important;
  color: var(--color-white) !important;
  border: 1px solid #EF4444 !important;
}
.btn-destructive:hover {
  background-color: #DC2626 !important;
  border-color: #DC2626 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

/* i18n Flash Prevention (Phase 16B) */
[data-i18n] {
  opacity: 0;
}
.i18n-loaded [data-i18n] {
  opacity: 1;
  transition: opacity 0.15s ease-in-out;
}

/* Header Responsive Alignment (Phase 16B) */
@media (max-width: 1100px) {
  .user-profile-info {
    display: none !important;
  }
}
@media (max-width: 768px) {
  #top-bar-features {
    gap: 0.4rem !important;
  }
  .lang-switcher-select {
    padding: 0.15rem 0.25rem !important;
    font-size: 0.7rem !important;
  }
  #btn-logout {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   PROGRAM COORDINATORS / TEAM SECTION (PART B)
   ========================================================================== */
.coordinators-section {
  background-color: var(--color-bg-alt);
  padding: 5rem 0;
  border-top: 1px solid rgba(15, 37, 55, 0.08);
}
.coordinators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}
.coordinator-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 37, 55, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.coordinator-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(18, 110, 122, 0.15);
}
.coordinator-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(18, 110, 122, 0.2);
}
.coordinator-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.coordinator-role {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.coordinator-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.coordinator-email:hover {
  color: var(--color-navy);
}

/* ==========================================================================
   DASHBOARD VIEW TRANSITION SEQUENCES (PART C)
   ========================================================================== */
.dashboard-view-section {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}
.dashboard-view-section.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 1;
  transform: translateY(0);
}
.dashboard-view-section.animating-out {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: viewSlideOut 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.dashboard-view-section.animating-in {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: viewSlideIn 150ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes viewSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes viewSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-view-section.animating-out,
  .dashboard-view-section.animating-in {
    animation: none !important;
  }
}

/* Acadex Sunum: full-viewport takeover, overriding .dashboard-content's
   padding/max-width so the embedded presentation tool (which assumes a
   full h-screen layout of its own) gets the whole screen instead of being
   squeezed into the normal padded content column. Its own "Panele Dön"
   button (inside acadex-sunum.html) calls closeAcadexSunum() to return. */
#acadexsunum-view.active,
#acadexsunum-view.animating-in,
#acadexsunum-view.animating-out {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: var(--color-navy);
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}
#acadexsunum-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   MIC BUTTON PULSE ANIMATION (PART D)
   ========================================================================== */
@keyframes micPulse {
  0% {
    background-color: #FEE2E2;
    border-color: #EF4444;
    color: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    background-color: #FEE2E2;
    border-color: #EF4444;
    color: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
.tool-btn#tool-mic.mic-active {
  animation: micPulse 1.5s infinite;
  background-color: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}
@media (prefers-reduced-motion: reduce) {
  .tool-btn#tool-mic.mic-active {
    animation: none !important;
  }
}

/* ==================================================
   TABLE IMPROVEMENTS (PHASE 18)
   ================================================== */
.draggable-table-wrapper {
  display: flex;
  flex-direction: column;
}
.draggable-table-wrapper table {
  flex: 1;
  width: 100%;
}
.table-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: se-resize;
  z-index: 10;
}
.table-actions-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background-color: #F1F5F9;
  border-bottom: 1px solid rgba(15, 37, 55, 0.12);
  align-items: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.draggable-table-wrapper:hover .table-actions-bar {
  opacity: 1;
}
.table-btn {
  background-color: #FFFFFF;
  border: 1px solid rgba(15, 37, 55, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-height: auto !important;
  line-height: 1;
}
.table-btn:hover {
  background-color: var(--color-teal-light);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* ==================================================
   TEXT RICH FORMATTING (PHASE 18)
   ================================================== */
.text-format-toolbar {
  display: flex;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(15, 37, 55, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 4px;
  gap: 4px;
}
.format-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
}
.format-btn:hover {
  background-color: var(--color-teal-light);
  color: var(--color-teal);
}

/* ==================================================
   PREMIUM STUDY CARD / FLASHCARD REDESIGN (PHASE 18)
   ========================================#library-cards-grid .doc-card,
#notebook-sidebar-list .doc-card {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border: 1px solid rgba(15, 37, 55, 0.08) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding-top: 1.5rem !important; /* make room for accent bar */
}

#library-cards-grid .doc-card::before,
#notebook-sidebar-list .doc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-gradient) !important;
  z-index: 1;
}

#library-cards-grid .doc-card::after,
#notebook-sidebar-list .doc-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23126E7A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c0 2 2 3 6 3s6-1 6-3v-5"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ── Flashcard Viewer Reference Layout Specs ── */
.flashcard-card {
  position: relative !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  box-shadow: 0 20px 50px -10px rgba(15, 37, 55, 0.2) !important;
  border: 1px solid rgba(15, 37, 55, 0.08) !important;
  padding: 40px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 320px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.flashcard-card::after,
.flashcard-card::before {
  display: none !important;
}

#btn-close-flashcard-modal {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 10 !important;
  background: rgba(15, 37, 55, 0.08) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: var(--color-navy) !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

#btn-close-flashcard-modal:hover {
  background: rgba(15, 37, 55, 0.15) !important;
  color: var(--color-navy) !important;
  transform: scale(1.05);
}

#btn-flashcard-bilmedim:hover {
  background: #FCA5A5 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25) !important;
}

#btn-flashcard-bildim:hover {
  background: linear-gradient(135deg, #11284A, #16727A) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 110, 122, 0.4) !important;
}

/* Flashcard and Board Add Buttons Branded Styling */
#btn-flashcard-send,
#btn-flashcard-next,
.btn-add-to-board,
.btn-deftere-ekle {
  background: var(--color-gradient) !important;
  color: var(--color-white) !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(18, 110, 122, 0.2);
  transition: all 0.2s ease;
}

.btn-add-to-board:hover,
.btn-deftere-ekle:hover,
#btn-flashcard-next:hover,
#btn-flashcard-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 110, 122, 0.35);
  background: var(--color-teal) !important;
}

/* Admin Panel Table styling */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 2px solid rgba(15, 37, 55, 0.08);
  background-color: var(--color-bg-alt);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.05);
  color: var(--color-text);
  white-space: nowrap;
}
.admin-table tr:hover {
  background-color: rgba(15, 37, 55, 0.02);
}

/* Floating Widgets Responsive Layout (Acadia & Focus Mode) */
@media (max-width: 768px) {
  #acadia-widget-container {
    bottom: 80px !important;
    left: 10px !important;
  }
  #pomodoro-widget-container {
    bottom: 20px !important;
    right: 10px !important;
  }
  #acadia-panel {
    width: calc(100vw - 20px) !important;
    max-height: 55vh !important;
  }
  #pomodoro-panel {
    width: calc(100vw - 20px) !important;
    max-height: 55vh !important;
  }
}

/* Draggable Shape & Image Overlays styling */
.draggable-shape-wrapper, 
.draggable-image-wrapper {
  background-color: transparent !important;
}

.draggable-element .delete-overlay-btn,
.draggable-element .table-resizer {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.draggable-element:hover .delete-overlay-btn,
.draggable-element:hover .table-resizer {
  opacity: 1;
  pointer-events: auto;
}

.shape-drag-handle {
  pointer-events: auto !important;
}
.btn-regenerate-section {
  opacity: 0.65;
  transition: all 0.2s ease-in-out;
}
.btn-regenerate-section:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.05);
}
.btn-regenerate-section:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Summary Style Modal: 2-column grid ── */
.style-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (max-width: 576px) {
  .style-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlight the selected style card */
.style-choice-card:has(input:checked) {
  border-color: var(--color-teal) !important;
  background-color: rgba(20, 184, 166, 0.04);
  box-shadow: 0 0 0 1px var(--color-teal);
}
.style-choice-card:hover {
  border-color: rgba(15, 37, 55, 0.25) !important;
  background-color: rgba(15, 37, 55, 0.02);
}
.style-choice-card:has(input:checked):hover {
  border-color: var(--color-teal) !important;
  background-color: rgba(20, 184, 166, 0.06);
}

/* ── AI Extracted Tables & Charts ── */
.ai-table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.12);
}

.ai-extracted-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.ai-extracted-table th {
  background-color: var(--color-navy);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid rgba(15, 37, 55, 0.2);
}

.ai-extracted-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
  color: var(--color-navy);
}

.ai-extracted-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.ai-extracted-table tr:hover {
  background-color: rgba(20, 184, 166, 0.05);
}

.ai-chart-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0.5rem auto 0.75rem;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.1);
  box-shadow: var(--shadow-sm);
}

.ai-section-card {
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ai-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ai-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin: 0;
}

/* Card Depot Table & Chart Previews */
.depot-preview-table-wrapper {
  max-height: 120px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: 6px;
  margin: 0.35rem 0;
  background: #fff;
}

.depot-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.depot-preview-table th {
  background: var(--color-navy);
  color: #fff;
  padding: 0.25rem 0.4rem;
}

.depot-preview-table td {
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid rgba(15, 37, 55, 0.06);
}

.depot-preview-chart-wrapper {
  width: 100%;
  height: 130px;
  position: relative;
  margin: 0.35rem 0;
  background: #fff;
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: 6px;
  padding: 0.25rem;
}

/* Notebook Canvas Overlay Elements for AI Table & Chart */
.draggable-ai-table-wrapper,
.draggable-ai-chart-wrapper {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.draggable-ai-table-wrapper .table-content-area,
.draggable-ai-chart-wrapper .chart-content-area {
  flex: 1;
  width: 100%;
  height: calc(100% - 28px);
  overflow: auto;
  padding: 0.4rem;
}

/* Sesli özet dökümü — defter öğesi + depo önizlemesi.
   Yapı ai_table/ai_chart ile aynı (sürükleme çubuğu + resizer), sadece
   içerik alanı metin akışı. */
.draggable-transcript-wrapper {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.draggable-transcript-wrapper .transcript-content-area {
  flex: 1;
  width: 100%;
  height: calc(100% - 28px);
  overflow: auto;
  padding: 0.5rem 0.6rem;
}

.transcript-line {
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0 0 0.4rem 0;
  color: var(--color-navy);
}

.transcript-line b {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: 0.3rem;
  color: var(--color-teal);
}

.transcript-line.speaker-b b {
  color: #6D28D9;
}

.depot-preview-transcript {
  background: #F8FAFC;
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  max-height: 120px;
  overflow: hidden;
}

.depot-preview-transcript .transcript-more {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0.2rem 0 0 0;
}

/* ── Footnote Markers & References ── */
.footnote-marker {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
  color: var(--color-teal);
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.15rem;
  margin-left: 0.1rem;
  border-radius: 3px;
  background: rgba(20, 184, 166, 0.1);
  transition: background-color 0.2s;
  position: relative;
  display: inline-block;
}

.footnote-marker:hover {
  background: var(--color-teal);
  color: #ffffff;
}

.footnotes-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(15, 37, 55, 0.15);
  font-size: 0.8rem;
}

.footnotes-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footnotes-list {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footnotes-list li {
  line-height: 1.35;
}

.footnote-page-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-teal);
  background: rgba(20, 184, 166, 0.1);
  border-radius: 8px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}

/* ── Hierarchical/Structural Summary Sections (navigable outline) ── */
.summary-sections-outline {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(15, 37, 55, 0.15);
}

.summary-sections-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.summary-section-item {
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.summary-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.summary-section-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-section-heading {
  flex-grow: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
}

.summary-section-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.summary-section-item.expanded .summary-section-chevron {
  transform: rotate(180deg);
}

.summary-section-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.summary-section-item.expanded .summary-section-body {
  max-height: 600px;
  padding: 0 0.65rem 0.6rem 0.65rem;
}

/* ── Suggested Course Tag Chip ── */
.suggested-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  background: #EEF2FF;
  border: 1px dashed #6366F1;
  border-radius: 12px;
  font-size: 0.725rem;
  color: #4F46E5;
  margin-top: 0.35rem;
}

.suggested-tag-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  line-height: 1;
}

.suggested-tag-chip .btn-accept-tag {
  color: #059669;
  background: #D1FAE5;
}

.suggested-tag-chip .btn-dismiss-tag {
  color: #DC2626;
  background: #FEE2E2;
}

/* ── Comparison Mode Card Styles ── */
.difference-card {
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.difference-aspect-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #D97706;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.past-comparison-card {
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.past-comparison-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── Notebook Template Picker Styles ── */
.template-card {
  background: #ffffff;
  border: 2px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.template-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.template-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* ── Page Thumbnail Overview Styles ── */
.page-thumbnail-tile {
  background: #ffffff;
  border: 2px solid rgba(15, 37, 55, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.page-thumbnail-tile:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-thumbnail-tile.active-page {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

.page-thumbnail-preview {
  height: 140px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 37, 55, 0.08);
}

.page-thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-thumbnail-meta {
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.page-thumbnail-title {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-navy);
}

.page-thumbnail-badge {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.page-thumbnail-add {
  height: 180px;
  border: 2px dashed rgba(15, 37, 55, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(20, 184, 166, 0.03);
}

.page-thumbnail-add:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--color-teal);
}

/* ── Share Modal Student Row Styles ── */
.share-user-row {
  background: #ffffff;
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-user-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-navy);
}

.share-user-meta {
  font-size: 0.725rem;
  color: var(--color-text-muted);
}

/* ── Redesigned Notebook Toolbar Styles ── */
.notebook-toolbar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.1);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  margin-bottom: 0.75rem;
}

.notebook-primary-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background-color: rgba(15, 37, 55, 0.12);
  margin: 0 0.15rem;
}

.notebook-contextual-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 37, 55, 0.08);
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.contextual-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notebook-bottom-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(15, 37, 55, 0.1);
}

/* ==========================================================================
   QUANTITATIVE COURSE STYLES (Formulas, KaTeX, Worked Examples, Calculations)
   ========================================================================== */
.formulas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.formula-card {
  background: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Tek sutuna sigmayan formul tum genislige yayilir (bkz.
   sigdirFormulKutusu): kaydirma cubugu formulun sagini hem ekranda hem
   ciktida yiyordu. */
.formula-card-wide {
  grid-column: 1 / -1;
}

.formula-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.65rem;
}

.formula-latex-box {
  background: var(--color-bg-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #4F46E5;
  margin-bottom: 0.75rem;
  text-align: center;
  overflow-x: auto;
  font-size: 1rem;
  color: var(--color-navy);
}

.formula-vars-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.formula-vars-list li {
  margin-bottom: 0.25rem;
}

.worked-examples-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.worked-example-card {
  background: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.worked-example-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.worked-example-problem {
  font-size: 0.85rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-teal);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.worked-example-steps {
  margin: 0 0 1rem 1.25rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--color-text);
}

.worked-example-steps li {
  margin-bottom: 0.35rem;
}

/* Cozumlu ornek adimi: aciklama + altinda ayri hesap satiri (09.10.2026).
   Hesap duz metnin icinde kayboluyordu; artik girintili, matematik
   fontunda ve uzun zincirler "= ..." satirlarina bolunmus. */
.worked-example-steps li.ws-step {
  margin-bottom: 0.6rem;
}

.ws-label {
  display: block;
}

.ws-calc {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-bg-alt);
  border-left: 3px solid rgba(18, 110, 122, 0.45);
  border-radius: var(--radius-sm);
  font-family: 'Cambria Math', 'STIX Two Math', 'Latin Modern Math', 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  overflow-x: auto;
  white-space: nowrap;
}

.ws-calc-line.ws-cont {
  padding-left: 1.25rem;
}

.worked-example-final {
  display: inline-block;
  background: rgba(18, 110, 122, 0.1);
  color: var(--color-teal);
  border: 1px solid rgba(18, 110, 122, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.calculation-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.calculation-input {
  width: 100%;
  max-width: 280px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgba(15, 37, 55, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all 0.2s ease;
}

.calculation-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(18, 110, 122, 0.12);
  outline: none;
}

.calculation-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

.solution-steps-box {
  background: rgba(18, 110, 122, 0.05);
  border: 1px solid rgba(18, 110, 122, 0.18);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.75rem;
}

.solution-steps-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.solution-steps-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ==========================================================================
   SIDE-BY-SIDE ORIGINAL DOCUMENT VIEWER & COURSE GLOSSARY STYLES
   ========================================================================== */
.study-card-modal-card.split-active {
  max-width: 95vw !important;
  width: 1400px !important;
  height: 90vh !important;
}

.study-card-split-wrapper {
  display: flex;
  gap: 1rem;
  width: 100%;
  height: calc(100% - 60px);
  overflow: hidden;
}

.study-card-modal-card.split-active .study-card-split-wrapper {
  height: calc(100% - 70px);
}

.study-card-split-wrapper #study-card-left-pane {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.original-doc-viewer-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 37, 55, 0.12);
  padding: 0.5rem;
  overflow: hidden;
  height: 100%;
}

@media (max-width: 992px) {
  .study-card-modal-card.split-active {
    height: 95vh !important;
  }
  .study-card-split-wrapper {
    flex-direction: column;
    overflow-y: auto;
  }
  .original-doc-viewer-pane {
    min-height: 400px;
  }
}

/* ==========================================================================
   KAYNAKLA ÇALIŞ (Source Hub) — PDF + Özet + Sohbet, tek sayfada 3 sütun
   ========================================================================== */
.sourcehub-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  height: calc(100vh - 260px);
  min-height: 480px;
}

.sourcehub-column {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid rgba(15, 37, 55, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sourcehub-column-header {
  padding: 0.6rem 0.85rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a365d 100%);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sourcehub-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
}

#sourcehub-pdf-pane.sourcehub-column-body {
  padding: 0;
}

@media (max-width: 1100px) {
  .sourcehub-columns {
    grid-template-columns: 1fr;
    height: auto;
  }
  .sourcehub-column {
    height: 520px;
  }
}

/* Glossary Page Styling */
.glossary-card {
  background: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glossary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.glossary-term-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glossary-definition-block {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-teal);
  margin-bottom: 0.5rem;
}

.glossary-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(15, 37, 55, 0.05);
  border: 1px solid rgba(15, 37, 55, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.45rem;
  margin-top: 0.25rem;
}

/* ── Summarization progress bars (per-document card + bulk banner) ──
   A filling bar reads as "still moving forward" far better than a bare
   spinner + text label. Width is driven by the backend's real
   processing_stage (extracting/analyzing/reviewing) for a single document,
   or by completed/total count for bulk summarization — see dashboard.js
   renderDocumentsList() and showBulkSummarizeProgress(). The width
   transition plus a moving shimmer keep it visibly "alive" between the
   2-second polling ticks that actually update the percentage. */
.doc-progress-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.doc-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(15, 37, 55, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.doc-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-navy), var(--color-teal));
  background-size: 200% 100%;
  transition: width 1.2s ease;
  animation: progress-shimmer 1.8s linear infinite;
}

.bulk-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  overflow: hidden;
}

.bulk-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--color-teal);
  transition: width 0.6s ease;
}

@keyframes progress-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* ── Base spinner animation (rotate + dash) ──
   Every "loading" spinner across the app (summarize buttons, upload,
   admin panels, podcast/section-visual generation, etc.) is a small SVG
   circle whose inline style references `animation: rotate ...` on the
   <svg> and `animation: dash ...` on its <circle class="path">. Those two
   keyframe names were referenced ~20+ times throughout dashboard.js but
   never actually defined anywhere in the stylesheet, so every one of
   those spinners rendered as a static, non-spinning circle. Defining them
   once here makes all of them animate for the first time — no per-call-site
   changes needed anywhere else.
*/
@keyframes rotate {
  100% { transform: rotate(360deg); }
}
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* ── Per-document summarization progress card ──
   A gentle pulsing highlight on the whole progress block while a summary
   is being generated, so the card visibly reads as "actively working" at
   a glance (not just the small spinner icon) between the 2s polling ticks
   that move the fill width and stage label forward. */
.doc-progress-wrap {
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: rgba(18, 110, 122, 0.05);
  border: 1px solid rgba(18, 110, 122, 0.12);
  animation: doc-progress-pulse 2.4s ease-in-out infinite;
}
@keyframes doc-progress-pulse {
  0%, 100% { background-color: rgba(18, 110, 122, 0.05); }
  50% { background-color: rgba(18, 110, 122, 0.11); }
}
.doc-progress-stage-icon {
  display: inline-block;
  animation: doc-progress-icon-bounce 1.6s ease-in-out infinite;
}
@keyframes doc-progress-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .doc-progress-wrap,
  .doc-progress-stage-icon,
  .doc-progress-fill {
    animation: none !important;
  }
}

/* Acadia context picker (select a study card as chat context) */
.acadia-card-picker-item:hover {
  background: var(--color-bg-alt) !important;
}

#btn-acadia-select-card:hover {
  border-color: var(--color-teal) !important;
  color: var(--color-navy) !important;
}

/* Acadia floating launcher: stylish pulsing circular FAB, stacked above Focus Mode */
.acadia-fab-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.acadia-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy) 100%);
  box-shadow: 0 10px 26px rgba(15, 35, 70, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: acadia-pulse-ring 2.4s ease-out infinite;
}

.acadia-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(15, 35, 70, 0.42);
}

.acadia-fab:active {
  transform: scale(0.96);
}

.acadia-fab-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.acadia-fab-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid var(--color-white);
  animation: acadia-dot-blink 1.8s ease-in-out infinite;
}

.acadia-fab-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-md);
}

.acadia-fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-navy);
}

.acadia-fab-wrap:hover .acadia-fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@keyframes acadia-pulse-ring {
  0% { box-shadow: 0 10px 26px rgba(15, 35, 70, 0.35), 0 0 0 0 rgba(45, 212, 191, 0.55); }
  70% { box-shadow: 0 10px 26px rgba(15, 35, 70, 0.35), 0 0 0 16px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 10px 26px rgba(15, 35, 70, 0.35), 0 0 0 0 rgba(45, 212, 191, 0); }
}

@keyframes acadia-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.acadia-panel-shell {
  animation: acadia-panel-in 0.22s ease-out;
}

@keyframes acadia-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .acadia-fab,
  .acadia-fab-dot,
  .acadia-panel-shell {
    animation: none !important;
  }
}

/* ── Sesli Özet (AI Podcast) player ── */
.podcast-player {
  background: linear-gradient(135deg, rgba(31,138,147,0.08), rgba(22,50,92,0.05));
  border: 1px solid rgba(31,138,147,0.15);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.podcast-player-hosts {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.podcast-host-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-navy);
  background: #fff;
  border: 1px solid rgba(22,50,92,0.12);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  transition: all 0.2s ease;
}

.podcast-host-chip.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(31,138,147,0.18);
}

.podcast-caption {
  min-height: 2.6em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-navy);
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.75rem;
}

.podcast-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(22,50,92,0.1);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.podcast-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-teal);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.podcast-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.podcast-ctrl-btn {
  border: none;
  background: var(--color-navy);
  color: #fff;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.podcast-ctrl-btn:hover {
  background: var(--color-teal);
  transform: scale(1.06);
}

.podcast-line-counter {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

/* ── Per-section visual generation buttons (🎨 Görsel oluştur) ── */
.btn-section-visual {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(31,138,147,0.3);
  background: #fff;
  color: var(--color-teal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-section-visual:hover:not(:disabled) {
  background: var(--color-teal);
  color: #fff;
  transform: translateY(-1px);
}

.btn-section-visual:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Sınav soru motoru (js/exam-engine.js) — Faz 1, 14.10.2026
   Soru haritası, işaretleme, tek tek görünüm.
   ========================================================================== */
#exam-navigator-host {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 1.25rem;
}
.exam-navigator {
  background: var(--color-white);
  border: 1px solid rgba(15, 37, 55, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.exam-nav-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.exam-nav-title { color: var(--color-navy); }
.exam-nav-count { color: var(--color-text-muted); font-weight: 600; }
.exam-nav-save { color: var(--color-teal); font-size: 0.75rem; font-weight: 600; }
.exam-nav-mode { margin-left: auto; padding: 0.35rem 0.75rem; font-size: 0.75rem; min-height: unset; }
.exam-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.exam-nav-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 37, 55, 0.18);
  background: var(--color-bg-alt);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
}
.exam-nav-btn:hover { border-color: var(--color-teal); }
.exam-nav-btn:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
.exam-nav-btn.is-answered {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #FFFFFF;
}
.exam-nav-btn.is-flagged {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
.exam-nav-btn.is-answered.is-flagged {
  background: var(--color-teal);
  color: #FFFFFF;
  box-shadow: inset 0 -4px 0 #F59E0B;
}
.exam-nav-btn.is-current {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}
.exam-nav-legend { font-size: 0.72rem; color: var(--color-text-muted); }

.exam-q-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.exam-q-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* .exam-question-card display:flex tanımlı; hidden özniteliği tek başına
   gizlemiyor. Tek tek görünüm buna dayanıyor. */
.exam-question-card[hidden] { display: none !important; }
.exam-q-actions .btn { white-space: nowrap; }
.exam-flag-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  min-height: unset;
  line-height: 1;
}
.exam-flag-btn[aria-pressed="true"] {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
.exam-question-card.is-flagged { border-left: 4px solid #F59E0B; }
.exam-question-card.is-current { border-color: rgba(18, 110, 122, 0.45); }
.exam-choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 37, 55, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-text-muted);
}
.exam-choice-label.selected .exam-choice-letter,
.exam-choice-label input[type="radio"]:checked + .exam-choice-letter {
  border-color: var(--color-teal);
  background: var(--color-teal);
  color: #FFFFFF;
}
.exam-input-row { margin-top: 0.5rem; }
.exam-text-input {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  border: 1px solid rgba(22, 50, 92, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.exam-textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(22, 50, 92, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
}
.exam-single-nav { display: none; }
.exam-mode-single .exam-single-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(15, 37, 55, 0.08);
  padding-top: 0.9rem;
}
.exam-single-nav .btn { padding: 0.45rem 0.9rem; font-size: 0.8rem; min-height: unset; }
.exam-single-pos { font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }

.exam-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--color-teal-light);
  border: 1px solid rgba(18, 110, 122, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-navy);
}
.exam-resume-banner .exam-resume-actions { display: flex; gap: 0.5rem; }
.exam-resume-banner .btn { padding: 0.45rem 0.9rem; font-size: 0.8rem; min-height: unset; white-space: nowrap; }
.exam-resume-banner .exam-resume-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; flex: 1 1 100%; }
.exam-resume-banner:not(.multi) .exam-resume-title { flex: 1 1 100%; margin-bottom: -0.6rem; }
.exam-resume-banner.multi { flex-direction: column; align-items: stretch; gap: 0.6rem; }
.exam-resume-banner.multi .exam-resume-row + .exam-resume-row { border-top: 1px solid rgba(18, 110, 122, 0.2); padding-top: 0.6rem; }

@media (max-width: 720px) {
  .exam-q-head { flex-direction: column; }
  .exam-nav-mode { margin-left: 0; }
}
