/* Modern Design System for Energy Optimization Web App */

:root {
  /* Color Palette */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --success-hover: #059669;
  --warning-color: #f59e0b;
  --warning-hover: #d97706;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Enhanced */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  padding: 32px;
  margin-bottom: 32px;
  border: 2px solid #E2E8F0;
}

.card-header {
  border-bottom: 2px solid #DBEAFE;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card-subtitle {
  color: #64748B;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 4px;
}

.card-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* Form Components */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--gray-500);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input:focus-visible {
  outline: 2px solid var(--gray-400);
  outline-offset: 2px;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: white;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Button Components - Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--space-2);
  letter-spacing: -0.01em;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 3px solid var(--gray-400);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--primary-color);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-300);
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: var(--warning-color);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: var(--warning-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* List Components */
.list {
  list-style: none;
}

.list-item {
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  background: white;
  transition: all 0.2s ease;
}

.list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.list-item:last-child {
  margin-bottom: 0;
}

/* Status Indicators */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Alert Components */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.alert-success {
  background: #f0fdf4;
  border-color: var(--success-color);
  color: #166534;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--warning-color);
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border-color: var(--danger-color);
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border-color: var(--primary-color);
  color: #1e40af;
}

/* Navigation - Legacy (hidden for new layout) */
.navbar {
  display: none;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Dashboard Specific */
.dashboard-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.dashboard-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 400;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  text-align: center;
  border: 2px solid #E2E8F0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
  border-color: var(--primary-color);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.2;
}

.stat-label {
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 13px;
  color: #64748B;
  margin-top: 8px;
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) and (min-width: 769px) {
  .main-content {
    padding: 72px 40px 40px 40px;
  }
  
  .navbar {
    padding: 24px 28px;
  }
  
  .card {
    padding: 28px;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .navbar-content {
    flex-direction: column;
    gap: 16px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Login Page Specific */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-4);
}

.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gray-700), var(--gray-900));
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-4);
  color: white;
}

.login-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.login-subtitle {
  color: var(--gray-600);
  font-size: var(--font-size-base);
}

.login-form {
  margin-bottom: var(--space-6);
}

.message-container {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-container .alert {
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

/* Top Navigation Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 8px;
  overflow: visible;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.header-logo {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .header-title {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-title {
    font-size: 12px;
  }
}

.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  overflow-x: visible;
  overflow-y: hidden;
  padding: 0 4px;
  min-width: 0;
  max-width: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  min-width: max-content;
  justify-content: center;
}

.header-nav-item {
  flex-shrink: 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
}

.sidebar-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: white;
  border-radius: 2px 2px 0 0;
}

.sidebar-nav-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.sidebar-nav-link span {
  display: inline-block;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.header-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.header-btn-signout {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
}

.header-btn-signout:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.4);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Main Content Area */
.main-content {
  margin-top: 72px;
  padding-top: 80px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 72px);
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 48px;
  overflow-y: auto;
}

/* Welcome Section */
.welcome-section {
  margin-top: 0;
  margin-bottom: 32px;
  animation: fadeIn 0.5s ease-out;
}

.welcome-section[style*="display: none"] {
  display: none !important;
}

.welcome-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.1);
  overflow: hidden;
  position: relative;
  margin-top: 0;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.welcome-illustration {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-content {
  flex: 1;
}

.welcome-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.welcome-title {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.status-badge.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Main Header */
.main-header {
  background: white;
  border-bottom: 2px solid #DBEAFE;
  padding: 24px 40px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.main-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  flex: 1;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-datetime {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-signout {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-signout:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Duplicate definition - ensuring padding-top is 80px */
.main-content {
  padding-top: 80px !important;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 48px;
  overflow-y: auto;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-title {
    font-size: 13px;
  }
  
  .header-container {
    padding: 0 14px;
    gap: 10px;
  }
  
  .header-left {
    gap: 10px;
  }
  
  .header-logo {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }
  
  .header-title {
    font-size: 14px;
    display: none;
  }
  
  .header-logo {
    width: 36px;
    height: 36px;
  }
  
  .header-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .header-btn span {
    display: none;
  }
  
  .main-content {
    margin-top: 64px;
    padding-top: 32px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
  }
  
  .welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  
  .welcome-illustration {
    width: 100px;
    height: 100px;
  }
  
  .welcome-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .card-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .card-subtitle {
    font-size: 13px;
  }
}

/* Mobile Navigation Menu */
@media (max-width: 1024px) {
  .header-nav.mobile-open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 999;
    display: block;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  .header-nav.mobile-open .header-nav-list {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .header-nav.mobile-open .sidebar-nav-link {
    width: 100%;
    padding: 14px 16px;
    justify-content: flex-start;
  }
  
  .header-nav.mobile-open .sidebar-nav-link.active::after {
    display: none;
  }
  
  .header-nav.mobile-open .sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.25);
  }
}

/* Schedule Cards */
.schedules-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.schedule-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: white;
  transition: all 0.2s ease;
}

.schedule-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.schedule-info {
  flex: 1;
}

.schedule-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.schedule-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.schedule-room,
.schedule-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.schedule-status {
  margin-left: var(--space-4);
}

.schedule-controls {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
}

.schedule-actions {
  display: flex;
  gap: var(--space-3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--gray-500);
}

.empty-state svg {
  margin-bottom: var(--space-4);
}

/* Admin Specific Styles */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  border: 2px solid #E2E8F0;
}

.admin-section h3 {
  margin: 0 0 24px 0;
  color: #0F172A;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.logs-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.log-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--font-size-xs);
  color: var(--gray-700);
}

.log-item:last-child {
  border-bottom: none;
}

.log-item:hover {
  background: white;
}

/* Instructor Management Styles */
.instructor-list {
  max-height: 500px;
  overflow-y: auto;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  background: white;
}

.instructor-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 2px solid #F1F5F9;
  background: white;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.instructor-card:last-child {
  border-bottom: none;
}

.instructor-card:hover {
  background: #F8FAFC;
}

.instructor-info {
  flex: 1;
}

.instructor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.instructor-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.instructor-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.instructor-details p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.instructor-details svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.instructor-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-left: var(--space-4);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  min-width: auto;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--gray-500);
}

.loading-state .spinner {
  margin-bottom: var(--space-4);
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--danger-color);
  text-align: center;
}

/* Dashboard Sections - Enhanced Spacing */
.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Enhanced Stats Cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-icon {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--font-size-2xl);
  opacity: 0.3;
}

.stat-change {
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
  font-weight: 500;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

/* Energy Panel */
.energy-panel {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.energy-meter {
  flex-shrink: 0;
}

.energy-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) 0deg, var(--gray-200) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.energy-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) 0deg, var(--gray-200) 0deg);
  transition: transform 0.3s ease;
}

.energy-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--gray-900);
}

.energy-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  display: block;
}

.energy-unit {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.energy-details {
  flex: 1;
}

.energy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-200);
}

.energy-item:last-child {
  border-bottom: none;
}

.energy-label {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.energy-data {
  font-weight: 600;
  color: var(--gray-900);
}

.energy-data.positive {
  color: var(--success-color);
}

/* Summary Grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.summary-icon {
  font-size: var(--font-size-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.summary-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* Activity List */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.2s ease;
}

.activity-item:hover {
  background: var(--gray-50);
}

.activity-content {
  flex: 1;
}

.activity-message {
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.activity-time {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.activity-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-status.status-success {
  background: var(--success-color);
}

.activity-status.status-warning {
  background: var(--warning-color);
}

.activity-status.status-info {
  background: var(--primary-color);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Classroom Management */
.classroom-controls {
  margin-bottom: var(--space-6);
}

.control-filters {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.classroom-list {
  display: grid;
  gap: var(--space-4);
}

.classroom-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease;
}

.classroom-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.classroom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.classroom-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.classroom-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.classroom-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.metric-value {
  font-weight: 600;
  color: var(--gray-900);
}

.classroom-controls {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

/* ESP32 Device Management */
.device-list {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.device-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.device-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.device-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}

.device-info {
  flex: 1;
}

.device-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.device-location {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.device-details {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-4);
}

.device-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.device-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.device-metric .metric-label {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.device-metric .metric-value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--gray-900);
}

.device-metric .metric-value.status-success {
  color: var(--success-color);
}

.device-metric .metric-value.status-secondary {
  color: var(--gray-500);
}

.device-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: stretch;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.device-actions button {
  flex: 1;
  justify-content: center;
  gap: var(--space-2);
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-4);
}

.device-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.device-actions button svg {
  flex-shrink: 0;
}

.device-control-btn {
  transition: all 0.2s ease;
}

.device-control-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.device-controls {
  margin-bottom: var(--space-6);
}

/* Schedule Management */
.schedule-controls {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease;
}

.schedule-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.schedule-info {
  flex: 1;
}

.schedule-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-2) 0;
}

.schedule-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.schedule-room,
.schedule-time {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.schedule-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.schedule-instructor {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.schedule-actions {
  display: flex;
  gap: var(--space-3);
}

/* Log Controls */
.log-controls {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: center;
}

.report-controls {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: center;
}

/* Report Container */
.report-container {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.report-metric {
  text-align: center;
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.metric-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.metric-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
}

.metric-value.positive {
  color: var(--success-color);
}

.report-details h4 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.classroom-report {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  border: 1px solid var(--gray-200);
}

.room-name {
  font-weight: 600;
  color: var(--gray-900);
}

.room-usage {
  color: var(--gray-600);
}

.room-savings {
  color: var(--success-color);
  font-weight: 600;
}

/* ML Insights */
.ml-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.insight-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
}

.insight-card h4 {
  margin-bottom: var(--space-4);
  color: var(--gray-900);
}

.forecast-data {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.forecast-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.forecast-label {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.forecast-value {
  font-weight: 600;
  color: var(--gray-900);
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.setting-item {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}

.setting-item h4 {
  margin: 0 0 12px 0;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 600;
}

.setting-item p {
  color: var(--gray-600);
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.permissions-list {
  display: grid;
  gap: var(--space-3);
}

.permission-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.permission-user {
  font-weight: 600;
  color: var(--gray-900);
}

.permission-role {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.permission-access {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.permission-actions {
  display: flex;
  gap: var(--space-2);
}

.email-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.email-settings .form-group:last-child {
  margin-bottom: 0;
}

.device-controls .form-row {
  margin-bottom: 24px;
}

.device-controls .btn {
  margin-bottom: 16px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.modal-header h3 {
  margin: 0;
  color: var(--gray-900);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .ml-insights {
    grid-template-columns: 1fr;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .report-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .schedule-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .schedule-actions {
    justify-content: stretch;
  }
  
  .schedule-actions .btn {
    flex: 1;
  }

  .instructor-card {
    flex-direction: column;
    gap: var(--space-4);
  }

  .instructor-actions {
    margin-left: 0;
    flex-direction: row;
    justify-content: flex-end;
  }
  
  .energy-panel {
    flex-direction: column;
    text-align: center;
  }
  
  .classroom-details {
    grid-template-columns: 1fr;
  }
  
  .log-controls,
  .report-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .report-summary {
    grid-template-columns: 1fr 1fr;
  }
  
  .permission-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .email-settings {
    grid-template-columns: 1fr;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .report-summary {
    grid-template-columns: 1fr;
  }
  
  .control-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .schedule-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =====================================================
   CSV IMPORT STYLES
   ===================================================== */

.csv-import-container {
  padding: var(--space-4);
}

/* Drop Zone */
.csv-drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gray-50);
}

.csv-drop-zone:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.csv-drop-zone.dragover {
  border-color: var(--primary-color);
  background: var(--primary-light);
  transform: scale(1.02);
}

.csv-drop-zone svg {
  color: var(--gray-400);
  margin: 0 auto var(--space-4);
}

.csv-drop-zone h4 {
  margin: 0 0 var(--space-2) 0;
  color: var(--gray-700);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.csv-drop-zone p {
  margin: 0;
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

/* File Info */
.csv-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.file-info-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.file-info-content svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.file-details span:first-child {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-size-base);
}

.file-details span:last-child {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.btn-icon-remove {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--gray-500);
  transition: all 0.2s ease;
}

.btn-icon-remove:hover {
  background: var(--danger-color);
  color: white;
}

/* CSV Preview */
.csv-preview {
  margin-bottom: var(--space-6);
}

.csv-preview h4 {
  margin: 0 0 var(--space-4) 0;
  color: var(--gray-900);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.csv-preview-table thead {
  background: var(--gray-100);
}

.csv-preview-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-300);
}

.csv-preview-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-900);
}

.csv-preview-table tbody tr:hover {
  background: var(--gray-50);
}

.csv-preview-table tbody tr:last-child td {
  border-bottom: none;
}

.preview-note {
  margin: 0;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  font-style: italic;
}

/* Validation Results */
.csv-validation-results {
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.validation-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.validation-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
}

.validation-stat .validation-icon {
  font-size: var(--font-size-2xl);
}

.validation-stat div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.validation-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.validation-count {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
}

.validation-valid {
  border-color: var(--success-color);
}

.validation-valid .validation-count {
  color: var(--success-color);
}

.validation-invalid {
  border-color: var(--danger-color);
}

.validation-invalid .validation-count {
  color: var(--danger-color);
}

/* Errors List */
.csv-errors-list {
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.csv-errors-list h4 {
  margin: 0 0 var(--space-3) 0;
  color: var(--gray-900);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.errors-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.errors-list li {
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  background: #fef2f2;
  border-left: 3px solid var(--danger-color);
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: var(--font-size-sm);
}

.errors-list li:last-child {
  margin-bottom: 0;
}

.success-message {
  margin: 0;
  padding: var(--space-3);
  background: #f0fdf4;
  border-left: 3px solid var(--success-color);
  border-radius: var(--radius-sm);
  color: #166534;
  font-weight: 500;
  font-size: var(--font-size-sm);
}

/* CSV Actions */
.csv-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.csv-actions .btn {
  min-width: 150px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.success {
  background: #DCFCE7;
  color: #166534;
}

.status-badge.warning {
  background: #FEF3C7;
  color: #92400E;
}

.status-badge.danger {
  background: #FEE2E2;
  color: #991B1B;
}

.status-badge.secondary {
  background: #E2E8F0;
  color: #475569;
}

/* Schedule Item Styles */
.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr 120px 180px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  transition: all 0.2s ease;
}

.schedule-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.schedule-time {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.schedule-time .date {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--font-size-sm);
}

.schedule-time .time {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.schedule-details h4 {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--gray-900);
}

.schedule-details p {
  margin: 0;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

.schedule-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* Responsive Design for CSV Import */
@media (max-width: 768px) {
  .validation-summary {
    grid-template-columns: 1fr;
  }

  .csv-actions {
    flex-direction: column;
  }

  .csv-actions .btn {
    width: 100%;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .schedule-actions {
    justify-content: stretch;
  }

  .schedule-actions .btn {
    flex: 1;
  }

  .csv-preview-table {
    font-size: var(--font-size-xs);
  }

  .csv-preview-table th,
  .csv-preview-table td {
    padding: var(--space-2) var(--space-3);
  }
}

/* =====================================================
   INSTRUCTOR PORTAL SPECIFIC STYLES
   ===================================================== */

/* Password Change Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-header p {
  margin: 0 0 1.5rem 0;
  color: var(--gray-600);
}

/* Welcome Card - Blue Version */
.welcome-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.welcome-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.welcome-content p {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
}

/* System Alerts */
.alerts-container {
  margin-bottom: 2rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-warning {
  background: #fef3cd;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

/* Schedule Cards - Enhanced to match Confirmation Cards */
.schedule-card {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.schedule-info h4 {
  margin: 0 0 12px 0;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.schedule-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-room,
.schedule-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
}

.schedule-room svg,
.schedule-time svg {
  flex-shrink: 0;
  color: var(--gray-500);
}

.schedule-status {
  display: flex;
  align-items: center;
}

/* Confirmation Content - Responsive Grid Layout */
.confirmation-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
}

/* Tablet: 2 columns */
@media (max-width: 1200px) and (min-width: 768px) {
  .confirmation-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .confirmation-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Confirmation Cards - Enhanced Design */
.confirmation-card {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.confirmation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.confirmation-header {
  margin-bottom: 20px;
  flex-grow: 1;
}

.confirmation-title {
  margin: 0 0 16px 0;
  color: #0F172A;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.confirmation-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirmation-room,
.confirmation-time,
.confirmation-date {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.confirmation-room svg,
.confirmation-time svg,
.confirmation-date svg {
  flex-shrink: 0;
  color: #64748B;
  margin-top: 2px;
}

.confirmation-room strong,
.confirmation-time strong,
.confirmation-date strong {
  font-weight: 500;
  color: #334155;
  margin-right: 4px;
}

.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid #F1F5F9;
}

.confirmation-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.confirmation-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.confirmation-actions .btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.confirmation-actions .btn:active:not(:disabled) {
  transform: translateY(0);
}

.confirmation-form {
  flex: 1;
  max-width: 400px;
}

/* Upcoming Classes List (for when showing list view) */
.upcoming-classes {
  padding: 0;
}

.upcoming-classes h4 {
  font-size: 20px;
  font-weight: 600;
  color: #0F172A;
  margin: 0 0 24px 0;
}

.classes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1200px) and (min-width: 768px) {
  .classes-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .classes-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.class-item {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.class-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.class-info {
  flex-grow: 1;
  margin-bottom: 20px;
}

.class-info h5 {
  margin: 0 0 16px 0;
  color: #0F172A;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.class-info p {
  margin: 0 0 8px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.class-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid #F1F5F9;
}

.class-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.class-actions .btn:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Tabs */
.notifications-tabs,
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: var(--primary-light);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Alerts List */
.alerts-list {
  max-height: 400px;
  overflow-y: auto;
}

.alerts-list .alert {
  margin-bottom: 0.75rem;
}

/* Logs List */
.logs-list {
  max-height: 500px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: white;
}

.log-content {
  flex: 1;
}

.log-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.log-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.log-room,
.log-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.log-status {
  display: flex;
  align-items: center;
}

/* Profile Content */
.profile-content {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.loading-content .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status Indicators */
.status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-success {
  background: #d1fae5;
  color: #065f46;
}

.status-warning {
  background: #fef3cd;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-500);
}

.empty-state svg {
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
}

.empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* Error States */
.error-state {
  text-align: center;
  padding: 2rem;
  color: var(--danger-color);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

/* Admin Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-header p {
  margin: 0.5rem 0 0 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  color: var(--gray-500);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

/* Mobile Responsive for Instructor Portal */
@media (max-width: 768px) {
  .welcome-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .welcome-actions {
    width: 100%;
    justify-content: center;
  }

  .confirmation-card {
    padding: 20px;
  }

  .confirmation-actions {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .log-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .log-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }
  
  .navbar-actions {
    gap: 12px;
  }
  
  .dashboard-title {
    font-size: 24px;
  }
  
  .dashboard-subtitle {
    font-size: 15px;
  }
  
  .schedule-card {
    padding: 20px;
  }
}

/* =====================================================
   ENHANCED UI POLISH - FINAL TOUCHES
   ===================================================== */

/* Improved User Info Display */
.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info span {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}

/* Enhanced Button Groups */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Better Empty States */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--gray-500);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--gray-400);
}

.empty-state h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-700);
}

.empty-state p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Enhanced Schedule List Item */
.schedule-item {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--gray-400);
}

/* Enhanced Stat Cards */
.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Smooth Scrollbar */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 5px;
  transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Better Selection Styling */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* Enhanced Tab Buttons */
.tab-btn {
  background: none;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  color: #64748B;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  color: var(--primary-color);
  background: #F0F7FF;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: #F0F7FF;
  font-weight: 600;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced Alert Styling */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid;
}

.alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Improved Loading States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  color: var(--gray-500);
}

.loading-state .spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
  margin-bottom: 24px;
}

/* Better Status Badge Styling */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Enhanced Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.form-actions .btn {
  min-width: 120px;
}

/* Responsive Enhancements for Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
  .confirmation-card {
    min-height: 220px;
  }
  
  .schedule-card {
    padding: 22px;
  }
  
  .stat-card {
    padding: 24px;
  }
}

/* Additional Mobile Refinements */
@media (max-width: 767px) {
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
  
  .user-info {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .empty-state {
    padding: 48px 20px;
  }
  
  .empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .sidebar-nav-link,
  .tab-btn {
    min-height: 48px;
  }
  
  .confirmation-card:hover,
  .schedule-card:hover,
  .stat-card:hover {
    transform: none;
  }
}
