:root {
  /* Colors - Light Mode (Zat Academy Theme) */
  --bg-body: #F0F4F9;
  --bg-sidebar: #F1F5F9;
  --bg-white: #ffffff;
  
  --text-primary: #1e293b; /* slate-800 */
  --text-secondary: #475569; /* slate-600 */
  --text-muted: #94a3b8; /* slate-400 */
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Brand Gradients */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  --accent-gradient-card: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 24px 16px;
}

.sidebar-header {
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 32px;
  padding: 0 12px;
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  color: var(--text-primary);
  font-weight: 600;
}

/* Active indicator bar */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #6366f1;
}

.nav-item svg {
  color: var(--text-muted);
  transition: 0.2s;
}

.nav-item.active svg {
  color: #6366f1;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.nav-item:hover .nav-icon {
  background-color: #e2e8f0;
}

.nav-item.active .nav-icon {
  background: var(--accent-gradient);
  color: white;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-body);
}

/* Header */
.top-header {
  height: 80px;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-search {
  position: relative;
  width: 320px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  transition: box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}

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

/* Dashboard Content */
.dashboard-view {
  padding: 32px;
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.content-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.welcome-section {
  margin-bottom: 24px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.welcome-text {
  color: var(--text-muted);
  margin: 0;
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Widget Styles */
.widget-card {
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.widget-action {
  color: var(--accent-start);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

/* Learning Journey */
.journey-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: 12px;
}

.journey-step {
  position: relative;
  padding-left: 32px;
  padding-bottom: 32px;
  border-left: 2px solid #e2e8f0;
}

.journey-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-dot {
  position: absolute;
  left: -6px; /* center on the line (2px width) -> 12px dot -> -5px left offset? Let's check visually */
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--text-muted);
  z-index: 2;
}

.journey-step.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.journey-step.current .step-dot {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.journey-step.locked .step-dot {
  background: var(--bg-white);
  border-color: var(--border);
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: -6px; /* align with dot */
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.journey-step.completed .step-card {
  border-left: 4px solid var(--success);
}
.journey-step.current .step-card {
  border-left: 4px solid var(--accent-blue);
}
.journey-step.locked .step-card {
  border-left: 4px solid var(--border);
  opacity: 0.7;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.step-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Upcoming Schedule */
.schedule-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

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

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 0;
  text-align: center;
  flex-shrink: 0;
}

.date-day {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 2px;
}

.date-month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.schedule-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
}

.schedule-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Next Session Card */
.next-session-card {
  background: var(--accent-gradient-card);
  color: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  margin-bottom: 24px;
}

.next-session-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 16px;
}

.next-session-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.next-session-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 24px;
}

.join-btn {
  background: white;
  color: #4f46e5;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Pending Tasks */
.task-list {
  display: flex;
  flex-direction: column;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.task-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-hover);
  border-radius: 6px;
  margin-top: 2px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}

.task-checkbox:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.task-content {
  flex: 1;
}

.task-content h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.task-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.tag-urgent {
  background: #fee2e2;
  color: #ef4444;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .main-content {
    margin-left: 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
