/* ============================================
   🎓 StudyAbroad SaaS - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-card: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

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

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

.btn-secondary {
  background: var(--secondary);
  color: var(--text-white);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.btn-danger {
  background: var(--danger);
  color: var(--text-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Navbar --- */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand .emoji {
  font-size: 28px;
}

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

.navbar-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%);
  padding: 80px 0;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-buttons .btn {
  padding: 16px 32px;
  font-size: 16px;
}

.hero-buttons .btn-white {
  background: white;
  color: var(--primary);
}

.hero-buttons .btn-white:hover {
  background: #F1F5F9;
}

.hero-buttons .btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-buttons .btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 36px;
  font-weight: 800;
  display: block;
}

.hero-stat .label {
  font-size: 14px;
  opacity: 0.8;
}

/* --- Feature Cards --- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-dark);
  padding: 48px 0;
  color: var(--text-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.stat-item .value {
  font-size: 32px;
  font-weight: 800;
  display: block;
}

.stat-item .label {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 4px;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step-card .emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  padding: 80px 0;
  color: var(--text-white);
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  font-size: 14px;
  opacity: 0.7;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* --- Cards / Dashboard --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 73px);
}

.sidebar {
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.sidebar-menu {
  padding: 0 12px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-menu a:hover {
  background: #F1F5F9;
  color: var(--text);
}

.sidebar-menu a.active {
  background: var(--primary);
  color: white;
}

.sidebar-menu a .emoji {
  font-size: 18px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 16px;
}

.main-content {
  padding: 32px;
  background: var(--bg);
  overflow-y: auto;
}

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

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Stat Cards --- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card .top .emoji {
  font-size: 24px;
}

.stat-card .top .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-green {
  background: #D1FAE5;
  color: #059669;
}

.badge-red {
  background: #FEE2E2;
  color: #DC2626;
}

.badge-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.badge-yellow {
  background: #FEF3C7;
  color: #D97706;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 800;
  display: block;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Data Table --- */
.data-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.data-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.data-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

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

.data-table tr:hover td {
  background: #F8FAFC;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-active {
  background: #D1FAE5;
  color: #059669;
}

.status-pending {
  background: #FEF3C7;
  color: #D97706;
}

.status-rejected {
  background: #FEE2E2;
  color: #DC2626;
}

.status-review {
  background: #DBEAFE;
  color: #2563EB;
}

/* --- Charts Placeholder --- */
.chart-placeholder {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.chart-placeholder .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-placeholder .header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex: 1;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transition: var(--transition);
  position: relative;
  min-height: 20px;
}

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

.chart-bar .chart-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}

.chart-bar .chart-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-label .emoji {
  margin-right: 4px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: #94A3B8;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%);
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

.auth-tabs {
  display: flex;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  color: var(--text-light);
}

.auth-tab.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #F1F5F9;
  color: var(--text-light);
}

.tag-primary {
  background: #EEF2FF;
  color: var(--primary);
}

.tag-green {
  background: #D1FAE5;
  color: #059669;
}

.tag-yellow {
  background: #FEF3C7;
  color: #D97706;
}

/* --- Avatars --- */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

/* --- Progress Bar --- */
.progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-green { background: var(--secondary); }
.progress-blue { background: var(--primary); }
.progress-yellow { background: var(--accent); }
.progress-orange { background: #f59e0b; }
.progress-red { background: var(--danger); }

/* --- Activity Feed --- */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content h4 {
  font-size: 14px;
  font-weight: 600;
}

.activity-content p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.activity-time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

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

.empty-state .emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* --- Notifications Badge --- */
.notification-badge {
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .grid-2, .grid-3, .grid-4, .stat-cards, .stats-grid, .steps-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   🌙 Dark Mode
   ============================================ */
.dark-mode {
  --bg: #0F172A;
  --bg-white: #1E293B;
  --bg-dark: #020617;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-light: #94A3B8;
  --text-white: #F8FAFC;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.2);
}

.dark-mode .data-table th {
  background: #0F172A;
}

.dark-mode .data-table tr:hover td {
  background: #0F172A;
}

.dark-mode .auth-tabs {
  background: #0F172A;
}

.dark-mode .auth-tab.active {
  background: var(--bg-card);
}

.dark-mode .form-input,
.dark-mode .form-select {
  background: #0F172A;
  color: var(--text);
  border-color: var(--border);
}

.dark-mode .form-input::placeholder {
  color: #475569;
}

.dark-mode .tag {
  background: #334155;
  color: var(--text-light);
}

.dark-mode .progress-bar {
  background: #334155;
}

.dark-mode .sidebar-menu a:hover {
  background: #334155;
}

.dark-mode .badge-green {
  background: #064E3B;
  color: #6EE7B7;
}

.dark-mode .badge-red {
  background: #7F1D1D;
  color: #FCA5A5;
}

.dark-mode .badge-blue {
  background: #1E3A5F;
  color: #93C5FD;
}

.dark-mode .badge-yellow {
  background: #78350F;
  color: #FCD34D;
}

.dark-mode .status-active {
  background: #064E3B;
  color: #6EE7B7;
}

.dark-mode .status-pending {
  background: #78350F;
  color: #FCD34D;
}

.dark-mode .status-rejected {
  background: #7F1D1D;
  color: #FCA5A5;
}

.dark-mode .status-review {
  background: #1E3A5F;
  color: #93C5FD;
}

.dark-mode .divider {
  color: #475569;
}

.dark-mode .divider::before,
.dark-mode .divider::after {
  background: #334155;
}

.dark-mode .chart-bar .chart-value {
  color: var(--text);
}

.dark-mode .section[style*="background: #F1F5F9"] {
  background: #0F172A !important;
}

/* 🌙 Dark Mode Toggle Button */
.dark-mode-toggle {
  background: none;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
  padding: 0;
  line-height: 1;
}

.dark-mode-toggle:hover {
  transform: rotate(20deg);
  opacity: 0.8;
}

/* 🌐 Language Dropdown */
#langDropdown button:hover {
  background: var(--bg) !important;
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Touch-friendly: minimum tap targets */
@media (max-width: 768px) {
  .btn, .btn-sm, .btn-primary, .btn-outline {
    min-height: 44px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .form-input, .form-select {
    min-height: 44px;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
  .sidebar-menu a {
    padding: 14px 20px;
    font-size: 15px;
  }
  .data-card-header {
    padding: 14px 16px;
  }
  /* Prevent horizontal overflow */
  body, html {
    overflow-x: hidden;
  }
  .main-content {
    overflow-x: hidden;
  }
}
