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

:root {
  --bg-color: #0b0f19;
  --bg-gradient: radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 40%), 
                 radial-gradient(circle at 85% 100%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
                 radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --secondary: #ec4899; /* Pink */
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 36px;
}

/* Glassmorphism utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px; /* More rounded, youthful feel */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.top-banner {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.top-banner span {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Sidebar Layout */
.app-layout {
  display: flex;
  min-height: calc(100vh - 40px);
}

.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 36px;
  left: 0;
  bottom: 0;
  z-index: 900;
  transition: transform 0.3s ease;
}

.sidebar .sidebar-logo {
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-light);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 1rem;
}

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

.sidebar-section-title {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.6;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  text-decoration: none;
}

.sidebar-menu li a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-menu li a .sidebar-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border);
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  max-width: calc(100% - 260px);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 46px;
  left: 10px;
  z-index: 1001;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
  .sidebar-toggle {
    display: block;
  }
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -60px;
  right: -40px;
}

.welcome-banner h2 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.welcome-banner p {
  color: rgba(255,255,255,0.85);
}

/* Circular Progress */
.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.progress-ring-container svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.progress-ring-text .ring-percent {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.progress-ring-text .ring-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.stat-info .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.stat-info .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Score Chart */
.score-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  padding: 1rem 0;
}

.score-bar {
  flex: 1;
  min-width: 30px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  position: relative;
  transition: height 0.5s ease;
  cursor: pointer;
}

.score-bar:hover {
  opacity: 0.8;
}

.score-bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  flex: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-username {
  color: var(--text-muted);
  margin-right: 1rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Sections */
.view {
  display: none;
  animation: fadeIn 0.5s ease;
}

.view.active {
  display: block;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Trust Badges */
.trust-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.2rem;
}

/* Alert Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control.error {
  border-color: var(--danger);
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.auth-card {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem;
  text-align: center;
}

/* Subscription Plans */
.plans {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.plan-card {
  padding: 2rem;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-10px);
}

.plan-card.popular {
  border-color: var(--primary);
  position: relative;
}

.plan-card.popular::before {
  content: 'En Popüler';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--text-light);
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.plan-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* Exam Module */
.exam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.timer {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.question-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.question-text {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.option.selected {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.option.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
}

.option.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.exam-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2rem;
  }
}

.avatar-circle {
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  background: var(--primary);
  flex-shrink: 0;
}

.analysis-panel {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-top: 4px solid var(--secondary);
}

.analysis-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analysis-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.topic-list {
  list-style: none;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.topic-item:last-child {
  border-bottom: none;
}

.progress-bar {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.5s ease;
}
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* Pomodoro Module */
.pomodoro-timer {
  font-size: 4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--danger), var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1.5rem 0 0.5rem;
  line-height: 1;
}

.pomodoro-timer.break {
  background: linear-gradient(135deg, var(--success), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pomodoro-status {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Stress Relief Module */
.breathing-circle-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.breathing-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(139, 92, 246, 0.2) 70%, transparent 100%);
  border-radius: 50%;
  transition: all 4s ease-in-out;
  opacity: 0.8;
  filter: blur(4px);
}

.breathing-circle.inhale {
  transform: scale(2.5);
  background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0.2) 70%, transparent 100%);
}

.breathing-circle.hold {
  transform: scale(2.5);
  transition: all 7s linear; /* 7 seconds hold */
}

.breathing-circle.exhale {
  transform: scale(1);
  transition: all 8s ease-in-out; /* 8 seconds exhale */
}

.breathing-text {
  position: relative;
  z-index: 10;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-color);
  top: 4px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.timeline-content h4 {
  margin-bottom: 0.25rem;
  color: var(--text-light);
}

.timeline-content p {
  font-size: 0.85rem;
  margin: 0;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

/* OMR Sidebar (Optik Form) */
.omr-dot {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
}

.omr-dot:hover {
  background: var(--card-border);
}

.omr-dot.active {
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.omr-dot.answered {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

@media (max-width: 900px) {
  .exam-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Practice Area */
.practice-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.topic-explanation {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.topic-explanation h4 {
  color: var(--text-light);
  margin: 1.5rem 0 0.5rem;
}

.topic-explanation p {
  margin-bottom: 1rem;
}

.topic-explanation ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.topic-explanation li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  padding: 1.25rem 2rem;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.6);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4 {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-badge {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--card-border);
}

.footer-bottom p {
  font-size: 0.85rem;
}

/* Legal Pages */
.legal-text {
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-text h2 {
  color: var(--text-light);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.legal-text h3 {
  color: var(--text-light);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-text p {
  margin-bottom: 1rem;
}

.legal-text ul {
  margin: 0.5rem 0 1.5rem 1.5rem;
}

.legal-text li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Loader */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

.hidden { display: none !important; }

/* Admin Table */
.admin-table th {
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
  font-weight: 600;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.admin-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-badge.tyt { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }
.admin-badge.ayt { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.admin-badge.lgs { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Stress Management Components */
.mood-btn:hover {
  transform: scale(1.2);
}
.mood-btn.active {
  filter: grayscale(0%) !important;
  transform: scale(1.3);
}

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

.burn-animation {
  animation: burnOut 1.5s forwards;
}

@keyframes burnOut {
  0% { transform: scale(1); opacity: 1; filter: brightness(1) sepia(0) hue-rotate(0); }
  30% { transform: scale(1.02); opacity: 0.8; filter: brightness(2) sepia(1) hue-rotate(-50deg); background: rgba(239, 68, 68, 0.5); }
  70% { transform: scale(0.9); opacity: 0.5; filter: brightness(0.5) sepia(1) hue-rotate(-50deg); color: transparent; background: #000; }
  100% { transform: scale(0.5) translateY(-50px); opacity: 0; filter: blur(10px); }
}

.box-breathing {
  animation: boxBreathe 16s infinite linear !important;
}

@keyframes boxBreathe {
  0% { transform: scale(1); border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
  25% { transform: scale(2); border-color: rgba(99, 102, 241, 0.8); box-shadow: 0 0 50px rgba(99, 102, 241, 0.5); }
  50% { transform: scale(2); border-color: rgba(99, 102, 241, 0.8); box-shadow: 0 0 50px rgba(99, 102, 241, 0.5); }
  75% { transform: scale(1); border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
  100% { transform: scale(1); border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
}

/* Topic Details Styles */
.topic-link {
  color: var(--text-light);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  display: block;
  width: 100%;
}
.topic-link:hover {
  color: var(--primary);
}

.tip-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.example-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}
.example-box::before {
  content: "Çözümlü Örnek";
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.formula-box {
  background: rgba(14, 165, 233, 0.1);
  border: 1px dashed #38bdf8;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  color: #38bdf8;
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
  font-weight: 500;
}

/* OMR Tabs */
.omr-tab {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.omr-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}
.omr-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Weekly Calendar Grid */
.weekly-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.cal-day-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.cal-day-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.cal-day-card.today {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.05);
}

.cal-day-header {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
}

.cal-day-card.today .cal-day-header {
  color: var(--primary);
}

.cal-task-item {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cal-task-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.cal-task-item.done {
  text-decoration: line-through;
  opacity: 0.5;
}
