:root {
  /* Colors - Soft AI/Calm Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-primary: #0ea5e9; /* Soft Blue */
  --accent-secondary: #14b8a6; /* Teal */
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --container-max: 1200px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-primary);
}

/* Navbar */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

  111 │ .logo {
  112 │   font-size: 1.5rem;
  113 │   font-weight: 800;
  114 │   background: var(--accent-gradient);
  115 │   -webkit-background-clip: text;
  116 │   -webkit-text-fill-color: transparent;
  117 │   display: flex;
  118 │   align-items: center;
  119 │   gap: 8px;
  120 │   position: relative;
  121 │ }
  122 │ 
  123 │ .logo::after {
  124 │   content: '';
  125 │   position: absolute;
  126 │   bottom: -2px;
  127 │   left: 0;
  128 │   width: 100%;
  129 │   height: 2px;
  130 │   background: var(--accent-gradient);
  131 │   transform: scaleX(0.3);
  132 │   transform-origin: left;
  133 │   transition: transform 0.3s ease;
  134 │ }
  135 │ 
  136 │ .logo:hover::after {
  137 │   transform: scaleX(1);
  138 │ }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

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

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-primary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Background Waves & AI Visuals */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.wave-svg {
  width: 100%;
  height: 150px;
}

.ai-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(20, 184, 166, 0.05) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
  animation: float 20s infinite alternate;
}

@keyframes float {
  0% { transform: translate(-10%, -10%) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* Dashboard Specifics */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: white;
  border-right: 1px solid var(--border-color);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  margin-top: 40px;
  list-style: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-link.active {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-primary);
}

.sidebar-link:hover:not(.active) {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.main-content {
  padding: 40px;
  background: var(--bg-primary);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Table Styles */
.data-table-container {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-color);
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(14, 165, 233, 0.02);
}

/* User Info Component */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Notification Badge */
.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.notification-bell:hover {
  background: var(--border-color);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Charts Placeholder */
.chart-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 24px;
}

.chart-bar {
  flex: 1;
  background: var(--accent-primary);
  opacity: 0.3;
  border-radius: 4px 4px 0 0;
  transition: opacity 0.3s;
}

.chart-bar:hover {
  opacity: 1;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.course-img {
  width: 100%;
  height: 180px;
  background: var(--accent-gradient);
  position: relative;
}

.course-content {
  padding: 24px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
}

/* Utilities */
.badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }

/* Water Splash Effect */
.water-overlay {
  position: fixed;
  top: 0;
  482 │   left: 0;
  483 │   width: 100vw;
  484 │   height: 100vh;
  485 │   pointer-events: none;
  486 │   z-index: 9999;
  487 │   overflow: hidden;
  488 │   background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
  489 │ }

.droplet {
  position: absolute;
  background: rgba(14, 165, 233, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

/* Scroll-based animations using CSS scroll-timeline (experimental) or standard parallax */
/* Since we are doing static wireframes, we simulate this with keyframes and standard delays */
@keyframes splash-up {
  0% { transform: translateY(100vh) scale(0) rotate(45deg); opacity: 0; }
  20% { opacity: 0.8; }
  50% { transform: translateY(20vh) scale(1.5) rotate(45deg); opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(0.5) rotate(45deg); opacity: 0; }
}

.droplet.animate {
  animation: splash-up 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Faster version for "fast scroll" states */
.droplet.animate-fast {
  animation: splash-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ripple {
  position: absolute;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@keyframes ripple-out {
  0% { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}

.ripple.animate {
  animation: ripple-out 1s ease-out forwards;
}

/* Interactive Water States */
.water-container {
  position: relative;
}

/* Custom Water Overlay Component for pages */
.splash-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Student Experience */
.lesson-player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-sidebar {
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}

.lesson-item {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.lesson-item.active {
  background: white;
  border-color: var(--border-color);
  600 │   box-shadow: var(--shadow-sm);
  601 │ }
  602 │ 
  603 │ /* Custom Splash Transition */
  604 │ .splash-transition {
  605 │   height: 320px;
  606 │   background: var(--bg-primary);
  607 │   position: relative;
  608 │ }
  609 │ 
  610 │ .splash-path {
  611 │   fill: var(--accent-primary);
  612 │   opacity: 0.1;
  613 │ }
