/* Animated Ocean Background */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, #000428 0%, #004e92 25%, #0ea5e9 50%, #06b6d4 75%, #000428 100%);
  animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {
  0% { transform: translate(-25%, -25%) rotate(0deg); }
  50% { transform: translate(-30%, -20%) rotate(5deg); }
  100% { transform: translate(-25%, -25%) rotate(0deg); }
}

.waves {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300d2ff' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  animation: waveMove 8s linear infinite;
}

.wave:nth-child(1) { opacity: 0.3; animation-duration: 12s; bottom: -50px; }
.wave:nth-child(2) { opacity: 0.2; animation-duration: 15s; animation-delay: -2s; bottom: -80px; height: 250px; }
.wave:nth-child(3) { opacity: 0.15; animation-duration: 10s; animation-delay: -4s; bottom: -100px; height: 300px; }

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(14, 165, 233, 0.1));
  border-radius: 50%;
  animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 12s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 14s; animation-delay: 4s; }
.bubble:nth-child(4) { width: 30px; height: 30px; left: 50%; animation-duration: 16s; animation-delay: 1s; }
.bubble:nth-child(5) { width: 25px; height: 25px; left: 65%; animation-duration: 20s; animation-delay: 3s; }
.bubble:nth-child(6) { width: 35px; height: 35px; left: 80%; animation-duration: 13s; animation-delay: 5s; }
.bubble:nth-child(7) { width: 15px; height: 15px; left: 90%; animation-duration: 17s; animation-delay: 2s; }

@keyframes rise {
  0% { bottom: -100px; transform: translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { bottom: 110%; transform: translateX(50px) scale(0.5); opacity: 0; }
}

.rays {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.1;
}

.ray {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 2px;
  height: 120%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  transform-origin: top center;
  animation: rayShine 8s ease-in-out infinite;
}

.ray:nth-child(1) { transform: translateX(-50%) rotate(-30deg); }
.ray:nth-child(2) { transform: translateX(-50%) rotate(-15deg); animation-delay: 1s; }
.ray:nth-child(3) { transform: translateX(-50%) rotate(0deg); animation-delay: 2s; }
.ray:nth-child(4) { transform: translateX(-50%) rotate(15deg); animation-delay: 3s; }
.ray:nth-child(5) { transform: translateX(-50%) rotate(30deg); animation-delay: 4s; }

@keyframes rayShine {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) rotate(var(--rotation, 0deg)) scaleY(1); }
  50% { opacity: 0.6; transform: translateX(-50%) rotate(var(--rotation, 0deg)) scaleY(1.1); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 300px;
  max-width: 420px;
  transform: translateX(120%);
  opacity: 0;
  animation: toastIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
  border-left: 4px solid #004e92;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.toast:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.22); }
.toast.toast-success { border-left-color: #059669; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warning { border-left-color: #f59e0b; }
.toast.toast-info { border-left-color: #004e92; }

.toast.toast-out { animation: toastOut 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: #d1fae5; color: #059669; }
.toast-error .toast-icon { background: #fee2e2; color: #ef4444; }
.toast-warning .toast-icon { background: #fef3c7; color: #f59e0b; }
.toast-info .toast-icon { background: #dbeafe; color: #004e92; }

.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 14px; color: #111827; margin-bottom: 2px; }
.toast-message { font-size: 13px; color: #6b7280; line-height: 1.4; }

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 16px;
}
.toast-close:hover { background: #f3f4f6; color: #374151; }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 0;
  height: 3px;
  border-radius: 0 0 14px 0;
  overflow: hidden;
}
.toast-progress-bar {
  height: 100%;
  border-radius: 3px;
  animation: toastProgress 4s linear forwards;
}
.toast-success .toast-progress-bar { background: #059669; }
.toast-error .toast-progress-bar { background: #ef4444; }
.toast-warning .toast-progress-bar { background: #f59e0b; }
.toast-info .toast-progress-bar { background: #004e92; }

@keyframes toastIn {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes toastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s, transform 0.5s;
}

.login-page.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

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

.login-header {
  background: linear-gradient(135deg, #000428 0%, #004e92 100%);
  padding: 40px 30px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.login-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.login-header h1 { font-size: 28px; margin-bottom: 8px; position: relative; z-index: 1; }
.login-header p { opacity: 0.9; position: relative; z-index: 1; }
.login-body { padding: 30px; }
.input-group { margin-bottom: 20px; }

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  background: white;
}

.input-field:focus {
  outline: none;
  border-color: #004e92;
  box-shadow: 0 0 0 4px rgba(0, 78, 146, 0.1);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after { width: 300px; height: 300px; }

.btn-primary {
  background: linear-gradient(135deg, #000428 0%, #004e92 50%, #0ea5e9 100%);
  background-size: 200% 200%;
  color: white;
  animation: shimmer 3s ease infinite;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 78, 146, 0.3);
}

.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #f3f4f6; color: #374151; margin-top: 12px; }
.btn-secondary:hover { background: #e5e7eb; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #991b1b;
  animation: shakeIn 0.4s ease;
}

.alert.show { display: flex; }

@keyframes shakeIn {
  0% { transform: translateX(-10px); opacity: 0; }
  25% { transform: translateX(8px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(3px); }
  100% { transform: translateX(0); opacity: 1; }
}

/* Body lock when sidebar is open on mobile */
body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* App Layout */
.app {
  display: none;
  min-height: 100vh;
  opacity: 0;
}

.app.active {
  display: flex;
  opacity: 1;
  animation: appFadeIn 0.6s 0.1s ease forwards;
}

@keyframes appFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sidebar - hidden until authenticated */
.sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

body.authenticated .sidebar {
  display: flex;
}

.sidebar-header {
  padding: 24px;
  background: linear-gradient(135deg, #000428 0%, #004e92 100%);
  color: white;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sidebar-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-brand span { font-size: 20px; font-weight: 700; }
.user-info h3 { font-size: 16px; margin-bottom: 4px; }
.user-info p { font-size: 13px; opacity: 0.8; }

.nav-menu {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(14, 165, 233, 0.08);
  transition: width 0.3s;
}

.nav-item:hover::before { width: 100%; }
.nav-item:hover { color: #004e92; }

.nav-item.active {
  background: rgba(14, 165, 233, 0.15);
  color: #004e92;
  border-left-color: #004e92;
}

.nav-item i { width: 20px; text-align: center; position: relative; z-index: 1; }
.nav-item span { position: relative; z-index: 1; }

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-logout:hover { background: #ef4444; color: white; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #004e92;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.35s;
}

.sidebar-overlay.active { display: block; opacity: 1; }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px;
  min-height: 100vh;
}

.page-header { margin-bottom: 32px; }

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle { color: rgba(255, 255, 255, 0.85); font-size: 16px; }

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); }

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 24px; }

/* Stagger Animation */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  transition: transform 0.3s;
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }

.stat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.stat-icon.cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.stat-icon.ocean { background: linear-gradient(135deg, #004e92, #0ea5e9); color: white; }
.stat-icon.tiffany { background: linear-gradient(135deg, #0d9488, #14b8a6); color: white; }

.stat-value { font-size: 28px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.stat-label { font-size: 14px; color: #6b7280; }

/* Booking Items */
.booking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #004e92;
  transition: all 0.3s;
  position: relative;
}

.booking-item:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.booking-item:last-child { margin-bottom: 0; }
.booking-item.confirmed { border-left-color: #059669; }
.booking-item.pending { border-left-color: #f59e0b; }

.booking-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #004e92, #0ea5e9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 78, 146, 0.3);
  transition: transform 0.3s;
}

.booking-item:hover .booking-icon { transform: scale(1.08); }

.booking-details { flex: 1; }
.booking-title { font-weight: 600; color: #111827; margin-bottom: 4px; }
.booking-meta { font-size: 14px; color: #6b7280; }

.booking-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.booking-status.confirmed { background: #d1fae5; color: #065f46; }
.booking-status.pending { background: #fef3c7; color: #92400e; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  font-weight: 600;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(249, 250, 251, 0.8);
}

.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(14, 165, 233, 0.04); }

/* Empty State */
.empty-state { text-align: center; padding: 48px 24px; }

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #004e92, #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 78, 146, 0.3);
  animation: emptyPulse 2s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 78, 146, 0.3); }
  50% { box-shadow: 0 8px 48px rgba(0, 78, 146, 0.5); }
}

.empty-state-title { font-weight: 600; color: #374151; margin-bottom: 8px; }
.empty-state-text { color: #9ca3af; font-size: 14px; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; padding: 48px; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #004e92;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Screens */
.screen { display: none; }

.screen.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Barcode */
.barcode-container { text-align: center; padding: 32px; }

.barcode-display {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: inline-block;
}

#barcode-display svg {
  width: 240px;
  height: 100px;
  display: block;
  margin: 0 auto;
}

.barcode-number {
  font-size: 28px;
  font-weight: 700;
  color: #004e92;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

/* Course Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.course-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
  cursor: pointer;
}

.course-card:hover {
  border-color: #004e92;
  box-shadow: 0 8px 24px rgba(0, 78, 146, 0.2);
  transform: translateY(-4px);
}

.course-card i { font-size: 32px; color: #004e92; margin-bottom: 8px; }
.course-card span { display: block; font-weight: 600; color: #374151; }

/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.language-switcher select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}

.language-switcher select:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

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

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; z-index: 1001; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
    position: fixed;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: contain;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { z-index: 999; }
  .app.active { flex-direction: column; }
  .sidebar-footer { display: block; }
  .nav-menu {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px 0;
    gap: 0;
  }
  .nav-item {
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
    touch-action: manipulation;
  }
  .main-content { margin-left: 0; padding: 72px 20px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .page-title { font-size: 24px; }
  .bg-gradient { animation-duration: 30s; }
  .language-switcher { top: 16px; right: 68px; z-index: 998; }
  .toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { min-width: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .main-content { padding: 72px 16px 16px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
