/* CSS Variables - Blue/Teal Brand System */
:root {
  /* Primary Accent - Blue */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  
  /* Optional Secondary - Teal */
  --secondary: #0891b2;
  --secondary-hover: #0e7490;
  
  /* Neutral Grays */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* Status Colors - Bright (for status indicators & CTAs only) */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Backgrounds - Neutral */
  --bg-primary: rgba(255, 255, 255, 0.95);
  --bg-secondary: rgba(248, 250, 252, 0.85);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-overlay: rgba(15, 23, 42, 0.02);
  
  /* Text - Neutral */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-disabled: #cbd5e1;
  
  /* Borders - Neutral */
  --border: rgba(226, 232, 240, 0.8);
  --border-hover: rgba(203, 213, 225, 0.8);
  
  /* Shadows - Neutral */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Glass Effect */
  --glass-blur: blur(20px) saturate(180%);
  --glass-opacity: 0.98;
  
  /* Background Gradients - Very Subtle Neutral Tints */
  --gradient-1: #f8fafc;
  --gradient-2: #f1f5f9;
  --gradient-3: #e2e8f0;
  --gradient-4: #f8fafc;
  
  /* Legacy support */
  --primary-color: var(--primary);
  --secondary-color: var(--secondary);
  --success-color: var(--success);
  --warning-color: var(--warning);
  --danger-color: var(--danger);
  --border-color: var(--border);
  --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Dark Theme - Blue/Teal Brand */
body.dark {
  --bg-primary: rgba(15, 23, 42, 0.95);
  --bg-secondary: rgba(30, 41, 59, 0.85);
  --bg-card: rgba(30, 41, 59, 0.98);
  --bg-card-hover: rgba(30, 41, 59, 1);
  --bg-overlay: rgba(255, 255, 255, 0.02);
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-disabled: #64748b;
  
  --border: rgba(51, 65, 85, 0.5);
  --border-hover: rgba(71, 85, 105, 0.5);
  
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  
  --gradient-1: #0f172a;
  --gradient-2: #1e293b;
  --gradient-3: #334155;
  --gradient-4: #1e293b;
}

/* Page-specific themes - All use same primary/secondary */
body.dpp,
body.energy,
body.education {
  --primary-color: var(--primary);
  --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Improve scrolling on mobile */
@media (max-width: 768px) {
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .main-content {
    overflow-x: hidden;
  }
}

/* Background Gradient - Subtle Enterprise Style */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 25%, var(--gradient-3) 50%, var(--gradient-4) 75%, var(--gradient-1) 100%);
  background-size: 400% 400%;
  animation: gradientShift 60s ease infinite;
  opacity: 0.6;
}

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

/* Animated Blobs - Very Subtle */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: -1;
  animation: blobMove 50s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  bottom: -200px;
  right: -200px;
  animation-delay: 10s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: var(--gradient-3);
  top: 50%;
  right: 10%;
  animation-delay: 20s;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: var(--gradient-4);
  bottom: 20%;
  left: 10%;
  animation-delay: 30s;
}

@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10px, -15px) scale(1.02); }
  66% { transform: translate(-8px, 8px) scale(0.98); }
}

body.dark .bg-gradient {
  opacity: 0.3;
}

body.dark .blob {
  opacity: 0.15;
}

@media (prefers-reduced-motion: reduce) {
  .bg-gradient,
  .blob {
    animation: none;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 80px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.hidden {
  transform: translateX(-100%);
  visibility: hidden;
  opacity: 0;
}

.sidebar .sidebar-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-toggle {
  display: none;
}

.sidebar-toggle svg {
  transition: var(--transition);
}

.sidebar-header {
  display: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}

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

.sidebar-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 600;
}

body.dark .sidebar-link.active {
  background: rgba(37, 99, 235, 0.15);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-label {
  transition: opacity 0.3s, width 0.3s;
  white-space: nowrap;
}

/* Main Content Area */
.main-content {
  margin-left: 80px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
}

.sidebar.hidden ~ .main-content {
  margin-left: 0;
  width: 100%;
}

/* Top Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.sidebar-toggle-mobile {
  display: flex;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-mobile:hover {
  background: var(--bg-card-hover);
}

.sidebar-toggle-mobile .logo-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar input::placeholder {
  color: var(--text-secondary);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
}

.user-avatar {
  background: var(--accent-gradient);
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.notification-btn:hover {
  background: var(--bg-card);
  transform: scale(1.05);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.notification-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--danger);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-clear {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.notification-clear:hover {
  background: var(--bg-card-hover);
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  position: relative;
}

.notification-item:hover {
  background: var(--bg-card-hover);
}

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

.notification-item.unread {
  background: rgba(59, 130, 246, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card-hover);
}

.notification-icon svg {
  width: 20px;
  height: 20px;
}

.notification-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.notification-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.notification-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.notification-icon.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.notification-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.notification-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}


.user-avatar::before {
  content: 'MH';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.theme-icon-light,
.theme-icon-dark {
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

.theme-icon-light {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-icon-dark {
  opacity: 0;
  transform: rotate(180deg);
}

body.dark .theme-icon-light {
  opacity: 0;
  transform: rotate(-180deg);
}

body.dark .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg);
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-align: center;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: center;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .kpi-card,
  .chart-card,
  .side-panel,
  .sidebar,
  .top-nav {
    background: var(--bg-card);
  }
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.kpi-card:hover::before {
  left: 100%;
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  transition: var(--transition);
  letter-spacing: -0.02em;
}

.kpi-change {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kpi-change.positive {
  color: var(--success);
}

.kpi-change.negative {
  color: var(--danger);
}

.kpi-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.1;
  width: 48px;
  height: 48px;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.chart-card:hover {
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Secondary Visualization (Donut/Progress) */
.secondary-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.donut-container {
  position: relative;
  width: 200px;
  height: 200px;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.donut-container svg {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 200px;
  display: block;
}

.donut-svg {
  overflow: visible;
}

.donut-svg {
  transform: rotate(-90deg);
}

.donut-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-unit {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Side Panel / Table Section */
.side-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.side-panel:hover {
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: var(--bg-secondary);
  transition: var(--transition);
}

/* List Styles */
.list-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.list-item:hover {
  background: var(--bg-secondary);
}

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

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.list-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.list-item-value {
  font-weight: 700;
  color: var(--primary);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Timeline */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 2;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-content {
  flex: 1;
}

.timeline-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.timeline-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.timeline-status.active {
  background: var(--success);
  color: white;
}

/* Stacked Bar */
.stacked-bar {
  display: flex;
  height: 200px;
  gap: 0.5rem;
  align-items: flex-end;
}

.stacked-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stacked-bar-column {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stacked-bar-column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2));
}

.stacked-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Page-Specific Layouts */

/* DPP: Traditional Dashboard Layout */
.dpp-charts {
  grid-template-columns: 2fr 1fr;
}

.dpp-tables {
  grid-template-columns: 1fr 1fr;
}

/* Energy: Sidebar + Main Content Layout */
.energy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.energy-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.energy-kpi {
  margin-bottom: 0;
}

.energy-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.energy-main-chart {
  flex: 1;
  min-height: 350px;
}

.energy-main-chart .chart-container {
  height: 300px;
}

.energy-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.energy-zones {
  max-height: 300px;
  overflow-y: auto;
}

/* Education: Horizontal KPIs, Side-by-side Charts, Full-width Modules */
.education-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.education-kpi {
  margin-bottom: 0;
}

.education-charts-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.education-charts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.education-chart-full {
  width: 100%;
}

.education-chart-full .chart-container {
  height: 300px;
}

.education-modules {
  margin-bottom: 2rem;
}

/* Value Update Animation - Subtle highlight without zoom */
@keyframes valueUpdate {
  0% {
    color: var(--text-primary);
  }
  50% {
    color: var(--primary);
  }
  100% {
    color: var(--text-primary);
  }
}

.value-updated {
  animation: valueUpdate 0.4s ease-in-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Sidebar hidden by default on mobile/tablet */
  .sidebar {
    transform: translateX(-100%);
  }

  .charts-section {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1rem;
    margin: 0 0 1.5rem 0;
  }

  .charts-section > * {
    width: 100%;
    box-sizing: border-box;
  }

  .dpp-tables {
    grid-template-columns: 1fr;
  }

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

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

  .energy-bottom {
    grid-template-columns: 1fr;
  }

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

  .mobile-overlay {
    display: none !important;
  }

  .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    width: 80px;
    max-width: 80px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: visible;
    opacity: 1;
  }

  .sidebar.hidden {
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
  }

  .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.hidden ~ .main-content {
    margin-left: 0;
    width: 100%;
  }

  .sidebar-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .education-charts-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  
  .main-content {
    padding-top: 0;
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
  }

  /* Ensure all cards and boxes have consistent width, padding, and margin */
  .kpi-card,
  .chart-card,
  .side-panel,
  .profile-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin: 0;
  }

  .sidebar:not(.hidden) ~ .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
  }

  .sidebar.hidden ~ .main-content {
    margin-left: 0;
    width: 100%;
  }

  .page-header {
    margin-bottom: 1.25rem;
    padding: 0 1rem;
    text-align: center;
  }

  .page-title {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
    text-align: center;
    line-height: 1.2;
  }

  .page-subtitle {
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.4;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .kpi-card {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .kpi-value {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .kpi-label {
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
  }

  .kpi-change {
    font-size: 0.8125rem;
  }

  .chart-container {
    height: 240px;
  }

  .chart-card {
    padding: 1rem;
    margin: 0 0 1rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .chart-title {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .top-nav {
    padding: 0.625rem 1rem;
    margin: 0;
    width: 100%;
    border-radius: 0;
    position: sticky;
    top: 0;
  }

  .top-nav-left {
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
  }

  .search-bar {
    max-width: none;
    flex: 1;
    min-width: 0;
  }

  .search-bar input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .search-icon {
    left: 0.875rem;
    width: 18px;
    height: 18px;
  }

  .top-nav-right {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .notification-btn,
  .user-avatar {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
  }

  .user-avatar::before {
    font-size: 0.8125rem;
  }

  .sidebar-toggle-mobile {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }

  .notification-btn svg {
    width: 18px;
    height: 18px;
  }

  .sidebar {
    width: 80px !important;
    max-width: 80px !important;
  }

  .sidebar-header {
    display: none;
  }

  .sidebar-nav {
    padding-top: 1rem;
  }

  .sidebar-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
  }

  .notification-dropdown {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 90px);
    transform: translateY(-10px);
    border-radius: 12px;
  }

  .notification-dropdown.active {
    transform: translateY(0);
  }

  .notification-list {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notification-item {
    padding: 0.875rem 1rem;
  }

  .notification-wrapper {
    position: static;
  }

  .energy-layout {
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .energy-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .energy-sidebar .kpi-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .energy-main {
    padding: 0;
    margin: 0;
  }

  .energy-main .chart-card,
  .energy-main .side-panel {
    padding: 1rem;
    margin: 0 0 1rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .energy-bottom {
    gap: 1rem;
  }

  .energy-bottom > * {
    width: 100%;
    box-sizing: border-box;
  }

  .education-kpis {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .education-charts-top {
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .education-charts {
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .education-modules {
    padding: 0 1rem;
    margin: 0 0 1.5rem 0;
  }

  .energy-main-chart .chart-container {
    height: 250px;
  }

  .education-chart-full .chart-container {
    height: 250px;
  }

  .side-panel {
    padding: 1rem;
    margin: 0 0 1rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .panel-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  /* Table improvements for mobile */
  .data-table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: block;
  }

  .data-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }

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

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin-right: auto;
    text-align: left;
  }

  .data-table td .progress-bar {
    flex: 1;
    max-width: 150px;
    margin-left: auto;
  }

  /* Timeline improvements */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
  }

  .timeline-item::before {
    width: 10px;
    height: 10px;
    left: 0;
  }

  .timeline-label {
    font-size: 0.9375rem;
  }

  .timeline-date {
    font-size: 0.8125rem;
  }

  .timeline-status {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
  }

  /* Donut chart size adjustment */
  .secondary-viz {
    min-height: 220px;
    padding: 0.75rem;
  }

  .donut-container {
    width: 180px;
    height: 180px;
    max-width: 100%;
  }

  .donut-container svg {
    max-width: 180px;
    max-height: 180px;
  }

  /* Stacked bar improvements */
  .stacked-bar {
    height: 180px;
  }

  /* Footer */
  .page-footer {
    padding: 2rem 1rem;
    margin-top: 3rem;
    font-size: 0.75rem;
  }
}

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

  /* Ensure all cards and boxes have consistent width, padding, and margin on small mobile */
  .kpi-card,
  .chart-card,
  .side-panel,
  .profile-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin: 0;
  }

  .page-header {
    padding: 0 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }

  .page-subtitle {
    font-size: 0.8125rem;
    text-align: center;
    line-height: 1.4;
  }

  .kpi-grid {
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .kpi-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .kpi-value {
    font-size: 1.5rem;
  }

  .kpi-icon {
    width: 40px;
    height: 40px;
    top: 1rem;
    right: 1rem;
  }

  .chart-card {
    padding: 1rem;
    margin: 0 0 0.75rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .chart-container {
    height: 220px;
  }

  /* Optimize scrolling performance on mobile */
  .main-content,
  .container {
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
  }

  /* Reduce animations on mobile for better performance */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .top-nav {
    padding: 0.5rem 0.75rem;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .top-nav-left {
    gap: 0.5rem;
  }

  .search-bar input {
    padding: 0.5rem 0.625rem 0.5rem 2.25rem;
    font-size: 0.8125rem;
    border-radius: 8px;
  }

  .search-icon {
    left: 0.75rem;
    width: 16px;
    height: 16px;
  }

  .notification-btn,
  .user-avatar {
    width: 36px;
    height: 36px;
    padding: 0.5rem;
    min-width: 36px;
    min-height: 36px;
  }

  .user-avatar::before {
    font-size: 0.75rem;
  }

  .sidebar-toggle-mobile {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }

  .notification-dropdown {
    position: fixed;
    top: 60px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
    transform: translateY(-10px);
    border-radius: 12px;
  }

  .notification-dropdown.active {
    transform: translateY(0);
  }

  .notification-list {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notification-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
  }

  .notification-title {
    font-size: 1rem;
  }

  .notification-wrapper {
    position: static;
  }

  .side-panel {
    padding: 1rem;
    margin: 0 0 0.75rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .data-table td {
    font-size: 0.8125rem;
  }

  .secondary-viz {
    min-height: 200px;
    padding: 0.5rem;
  }

  .donut-container {
    width: 160px;
    height: 160px;
    max-width: 100%;
  }

  .donut-container svg {
    max-width: 160px;
    max-height: 160px;
  }

  .donut-value {
    font-size: 1.25rem;
  }

  .stacked-bar {
    height: 160px;
    gap: 0.375rem;
  }

  .stacked-bar-label {
    font-size: 0.6875rem;
  }

  .list-item {
    padding: 0.875rem;
  }

  .list-item-name {
    font-size: 0.9375rem;
  }

  .list-item-value {
    font-size: 0.9375rem;
  }

  .progress-bar {
    height: 6px;
  }

  .page-footer {
    padding: 1.5rem 0.75rem;
    font-size: 0.6875rem;
    margin-top: 2rem;
  }

  .charts-section {
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .charts-section > * {
    width: 100%;
    box-sizing: border-box;
  }

  .education-charts-top {
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .education-charts-top > * {
    width: 100%;
    box-sizing: border-box;
  }

  .education-charts {
    gap: 0.75rem;
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .education-charts > * {
    width: 100%;
    box-sizing: border-box;
  }

  .energy-layout {
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .energy-layout > * {
    width: 100%;
    box-sizing: border-box;
  }

  .energy-sidebar {
    padding: 0 0.75rem;
    margin: 0;
  }

  .energy-sidebar > * {
    width: 100%;
    box-sizing: border-box;
  }

  .education-kpis {
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .education-kpis > * {
    width: 100%;
    box-sizing: border-box;
  }

  .education-modules {
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .education-modules > * {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .sidebar-link,
  .notification-btn,
  .user-avatar,
  .sidebar-toggle,
  .sidebar-toggle-mobile {
    min-height: 44px;
    min-width: 44px;
  }

  .notification-clear {
    min-height: 36px;
    padding: 0.375rem 0.75rem;
  }

  .kpi-card:hover {
    transform: none;
  }

  .chart-card:hover {
    transform: none;
  }

  .side-panel:hover {
    transform: none;
  }
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Footer Attribution */
.page-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  letter-spacing: 0.3px;
}

.page-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.page-footer a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.page-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.page-footer a:hover::after {
  width: 100%;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Profile Page Styles */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  padding: 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-avatar-large {
  flex-shrink: 0;
}

.user-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.user-avatar-large::before {
  content: 'MH';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.profile-email {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  padding: 0.375rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  display: inline-block;
}

.profile-details {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.profile-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.profile-detail-item:hover {
  background: var(--bg-card-hover);
}

.detail-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
  .profile-section {
    padding: 0 1rem;
    margin: 0;
  }

  .profile-card {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    margin: 0 0 1rem 0;
  }

  .profile-details {
    padding: 0;
    margin: 0;
    gap: 1rem;
  }

  .profile-details .chart-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .user-avatar-large {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    margin: 0;
  }

  .profile-details > * {
    width: 100%;
    box-sizing: border-box;
  }

  .profile-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-value {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-section {
    padding: 0 0.75rem;
    margin: 0;
  }

  .profile-card {
    padding: 1rem;
    margin: 0 0 1.25rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .profile-details {
    padding: 0;
    margin: 0;
    gap: 0.75rem;
  }

  .profile-details .chart-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .energy-layout {
    padding: 0 0.75rem;
    margin: 0 0 1.25rem 0;
  }

  .energy-sidebar {
    padding: 0;
    margin: 0;
  }

  .energy-sidebar .kpi-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .energy-main {
    padding: 0;
    margin: 0;
  }

  .energy-main .chart-card,
  .energy-main .side-panel {
    padding: 1rem;
    margin: 0 0 0.75rem 0;
    width: 100%;
    box-sizing: border-box;
  }

  .energy-bottom {
    gap: 0.75rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .user-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
  }

  .profile-details {
    gap: 0.75rem;
  }

  .profile-detail-item {
    padding: 0.875rem;
    width: 100%;
    box-sizing: border-box;
  }
}
