:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

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-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

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

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

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

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

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

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

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

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 33%, #FFFFFF 66%, #138808 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  text-align: center;
  color: var(--color-text);
}

.flag-loader {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-24);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.flag-stripe {
  height: 33.33%;
  animation: flagWave 1.5s ease-in-out infinite;
}

.flag-stripe.saffron {
  background: #FF9933;
  animation-delay: 0s;
}

.flag-stripe.white {
  background: #FFFFFF;
  animation-delay: 0.2s;
}

.flag-stripe.green {
  background: #138808;
  animation-delay: 0.4s;
}

@keyframes flagWave {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.1); }
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  margin: var(--space-16) auto;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: loadProgress 3s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* Body with Indian Flag Background */
body {
  background: linear-gradient(135deg, 
    rgba(255, 153, 51, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.05) 75%, 
    rgba(19, 136, 8, 0.1) 100%
  );
  background-attachment: fixed;
  font-family: 'Noto Sans Devanagari', var(--font-family-base);
  padding-bottom: 70px; /* Space for mobile bottom nav */
}

/* Desktop Header */
.desktop-header {
  display: block;
}

.mobile-header {
  display: none;
}

@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  body {
    padding-top: 60px; /* Mobile header height */
  }
}

/* Government Bar */
.gov-bar {
  background: linear-gradient(90deg, #FF9933, #138808);
  color: white;
  padding: var(--space-6) 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

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

.gov-info {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.gov-emblem {
  font-size: var(--font-size-lg);
}

/* Main Header */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-16) 0;
}

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

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.logo {
  font-size: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.site-title {
  margin: 0;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-tagline {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.header-actions {
  display: flex;
  gap: var(--space-12);
}

/* Navigation Bar */
.nav-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-12) 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-20);
  justify-content: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 100;
  padding: 0 var(--space-16);
}

.mobile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo-icon {
  font-size: 24px;
}

.mobile-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.mobile-actions {
  display: flex;
  gap: var(--space-8);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  margin-top: 0;
}

@media (max-width: 768px) {
  .main-content {
    margin-top: 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-32) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 153, 51, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.1) 75%, 
    rgba(19, 136, 8, 0.15) 100%
  );
  backdrop-filter: blur(10px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
    text-align: center;
  }
  
  .hero {
    padding: var(--space-24) 0;
    min-height: 60vh;
  }
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  line-height: var(--line-height-tight);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  line-height: var(--line-height-normal);
}

.hero-actions {
  display: flex;
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: var(--space-12);
}

.stat-value {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-0);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.stat-change {
  font-size: var(--font-size-sm);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

/* Section Styling */
section {
  padding: var(--space-32) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-24) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* Calendar Section */
.calendar-section {
  background: var(--color-bg-1);
}

.calendar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  margin-bottom: var(--space-32);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
}

.calendar-header h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.calendar-filters {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.filter-btn:hover:not(.active) {
  background: var(--color-secondary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-24);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  font-size: var(--font-size-sm);
}

.calendar-day:hover {
  background: var(--color-secondary);
}

.calendar-day.today {
  background: var(--color-primary);
  color: white;
}

.calendar-day.has-event {
  background: var(--color-bg-2);
  border-color: var(--color-warning);
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: var(--color-warning);
  border-radius: 50%;
}

.calendar-day-header {
  background: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.upcoming-events {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
}

.upcoming-events h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-12);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.event-item:hover {
  transform: translateY(-2px);
}

.event-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

.event-icon.meeting { background: var(--color-bg-1); }
.event-icon.health { background: var(--color-bg-3); }
.event-icon.agriculture { background: var(--color-bg-2); }
.event-icon.festival { background: var(--color-bg-4); }
.event-icon.employment { background: var(--color-bg-5); }

.event-info h4 {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.event-info p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Officials Section */
.officials-section {
  background: var(--color-bg-2);
}

.leadership-section,
.sabhasad-section,
.departments-section {
  margin-bottom: var(--space-32);
}

.leadership-section h3,
.sabhasad-section h3,
.departments-section h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  text-align: center;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.official-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.official-card:hover {
  transform: translateY(-4px);
}

.official-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-16);
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-text);
}

.official-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.official-position {
  font-size: var(--font-size-base);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-8);
}

.official-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.contact-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-base);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.contact-btn:hover {
  transform: scale(1.1);
}

.official-details {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

.sabhasad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.sabhasad-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.sabhasad-card:hover {
  transform: translateY(-2px);
}

.ward-number {
  background: var(--color-primary);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-8);
  display: inline-block;
}

.sabhasad-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.sabhasad-contact {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.committees {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.committee-tag {
  background: var(--color-bg-3);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text);
}

.department-tabs {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
  justify-content: center;
}

.dept-tab {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.dept-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.dept-tab:hover:not(.active) {
  background: var(--color-secondary);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-16);
}

.department-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.department-card:hover {
  transform: translateY(-2px);
}

.dept-official-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.dept-official-position {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-8);
}

.dept-services {
  margin-bottom: var(--space-8);
}

.service-tag {
  background: var(--color-bg-4);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text);
  margin-right: var(--space-4);
  margin-bottom: var(--space-4);
  display: inline-block;
}

/* History Section */
.history-section {
  background: var(--color-bg-3);
}

.timeline-section,
.historical-places-section,
.cultural-heritage-section,
.personalities-section {
  margin-bottom: var(--space-32);
}

.timeline-section h3,
.historical-places-section h3,
.cultural-heritage-section h3,
.personalities-section h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-24);
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 10%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 10%;
}

.timeline-year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: white;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  z-index: 2;
}

.timeline-event {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.timeline-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

@media (max-width: 768px) {
  .timeline::before {
    left: var(--space-16);
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: var(--space-32) !important;
    margin-right: 0 !important;
  }
  
  .timeline-year {
    left: var(--space-16);
  }
}

.places-grid,
.heritage-grid,
.personalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.place-card,
.heritage-card,
.personality-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.place-card:hover,
.heritage-card:hover,
.personality-card:hover {
  transform: translateY(-4px);
}

.place-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.place-content,
.heritage-content,
.personality-content {
  padding: var(--space-16);
}

.place-name,
.heritage-name,
.personality-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.place-period,
.personality-period {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-8);
}

.place-description,
.heritage-description,
.personality-contribution {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-8);
}

.place-status {
  display: inline-block;
  background: var(--color-success);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Services Section */
.services {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.service-categories {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
  justify-content: center;
}

.category-tab {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.category-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.category-tab:hover:not(.active) {
  background: var(--color-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.service-icon {
  font-size: 48px;
  margin-bottom: var(--space-16);
}

.service-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.service-desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
}

.service-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-16);
  padding: var(--space-12);
  background: rgba(var(--color-teal-500-rgb), 0.05);
  border-radius: var(--radius-base);
}

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

.detail-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: var(--space-4);
}

.detail-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.service-dashboard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
}

.service-dashboard h3 {
  text-align: center;
  margin-bottom: var(--space-24);
  color: var(--color-text);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.dashboard-card:hover {
  transform: translateY(-2px);
}

.dashboard-icon {
  font-size: 32px;
  margin-bottom: var(--space-8);
}

.dashboard-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.dashboard-label {
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.dashboard-change {
  font-size: var(--font-size-sm);
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

/* News Section */
.news {
  background: rgba(19, 136, 8, 0.03);
}

.news-ticker {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  margin-bottom: var(--space-24);
  overflow: hidden;
}

.ticker-label {
  background: var(--color-error);
  color: white;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  margin-right: var(--space-16);
}

.ticker-content {
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

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

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-24);
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card.featured {
  border-left: 4px solid var(--color-primary);
}

.news-category {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
}

.news-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-tight);
}

.news-summary {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  line-height: var(--line-height-normal);
}

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

.news-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: var(--space-12);
}

.contact-card h3 {
  margin-bottom: var(--space-8);
}

.contact-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
}

/* Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal.hidden {
  display: none;
}

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

.modal-header h3 {
  margin: 0;
  color: var(--color-text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.modal-body {
  padding: var(--space-20);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-12);
  padding: var(--space-20);
  border-top: 1px solid var(--color-border);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.modal-overlay.hidden {
  display: none;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, 
    rgba(255, 153, 51, 0.9) 0%, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.1) 75%, 
    rgba(19, 136, 8, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  color: white;
  padding: var(--space-32) 0 var(--space-16);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer-section h4 {
  margin-bottom: var(--space-16);
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--font-size-lg);
  transition: all var(--duration-fast) var(--ease-standard);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-16);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: none;
  z-index: 100;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  padding: var(--space-8);
}

.bottom-nav-item.active {
  color: var(--color-primary);
  background: rgba(var(--color-teal-500-rgb), 0.1);
}

.bottom-nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

.bottom-nav-icon {
  font-size: 20px;
  margin-bottom: var(--space-4);
}

.bottom-nav-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-standard);
}

.mobile-nav-drawer.hidden {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-drawer.hidden .mobile-nav-content {
    transform: translateX(-100%);
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration-normal) var(--ease-standard);
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-16) var(--space-20);
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.mobile-nav-logo .logo-icon {
    font-size: var(--font-size-2xl);
}

.mobile-nav-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) var(--ease-standard);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-menu {
    flex: 1;
    padding: var(--space-20) 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-16) var(--space-20);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all var(--duration-fast) var(--ease-standard);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--color-secondary);
    border-left-color: var(--color-primary);
}

.mobile-nav-link.active {
    background: rgba(var(--color-teal-500-rgb), 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

.mobile-nav-icon {
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
}

/* Prevent body scrolling when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-nav-content {
        background: rgba(var(--color-charcoal-800-rgb), 0.95);
        border-right-color: rgba(var(--color-gray-400-rgb), 0.3);
    }

    .mobile-nav-link {
        color: var(--color-text);
    }

    .mobile-nav-link:hover {
        background: var(--color-secondary);
    }
}

[data-color-scheme="dark"] .mobile-nav-content {
    background: rgba(38, 40, 40, 0.95);
    border-right-color: rgba(119, 124, 124, 0.3);
}

[data-color-scheme="dark"] .mobile-nav-link {
    color: var(--color-text);
}

[data-color-scheme="dark"] .mobile-nav-link:hover {
    background: var(--color-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mobile-nav-content {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        width: 90%;
    }
}


/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  right: var(--space-20);
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  z-index: 90;
}

@media (max-width: 768px) {
  .floating-actions {
    right: var(--space-16);
    bottom: 90px;
  }
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.emergency-fab {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  color: white;
}

.chat-fab {
  background: var(--color-primary);
  color: white;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab:active {
  transform: scale(0.95);
}

/* Chatbot */
.chatbot {
  position: fixed;
  right: var(--space-20);
  bottom: var(--space-20);
  width: 380px;
  height: 500px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-standard);
}

@media (max-width: 768px) {
  .chatbot {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.chatbot.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .chatbot.hidden {
    transform: translateX(100%);
  }
}

/* Chatbot Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-600));
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (max-width: 768px) {
  .chatbot-header {
    border-radius: 0;
    padding-top: calc(var(--space-16) + 60px); /* Account for mobile header */
  }
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bot-info h3 {
  margin: 0;
  font-size: var(--font-size-lg);
}

.bot-status {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.chatbot-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-standard);
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact Integration */
.contact-integration {
  background: rgba(var(--color-teal-500-rgb), 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-12);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-action {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  font-size: var(--font-size-sm);
}

.contact-action:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.action-icon {
  font-size: var(--font-size-base);
}

/* Chat Messages */
.chatbot-messages {
  flex: 1;
  padding: var(--space-16);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.message {
  display: flex;
  align-items: flex-end;
  gap: var(--space-8);
  max-width: 80%;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: white;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: var(--color-secondary);
  color: var(--color-text);
}

.message-content {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-12);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.user .message-content {
  background: var(--color-primary);
  color: white;
}

.message-text {
  margin: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.message-time {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  margin-top: var(--space-4);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  max-width: 80px;
}

.typing-dots {
  display: flex;
  gap: var(--space-4);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-secondary);
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Chat Input */
.chatbot-input {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .chatbot-input {
    padding-bottom: calc(var(--space-16) + 70px); /* Account for bottom nav */
  }
}

.input-actions {
  display: flex;
  gap: var(--space-4);
}

.input-action {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.input-action:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

#chat-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

/* Quick Suggestions */
.quick-suggestions {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-16);
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-standard);
}

.suggestion-chip:hover {
  background: var(--color-primary);
  color: white;
}

/* Chatbot Overlay */
.chatbot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 150;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.chatbot-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .chatbot-overlay {
    display: none;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: var(--space-20);
  right: var(--space-20);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .toast-container {
    top: 80px;
    left: var(--space-16);
    right: var(--space-16);
  }
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-base);
  padding: var(--space-12) var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideInToast 0.3s ease-out forwards;
  max-width: 350px;
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-error);
}

.toast.info {
  border-left: 4px solid var(--color-info);
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  font-size: var(--font-size-lg);
}

.toast-message {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* ==============================================
   NEW SECTIONS COMPLETE STYLES
   ============================================== */

/* Gallery Section Styles */
.gallery-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-btn:hover {
    background: #f0f8ff;
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.category-btn.active {
    background: linear-gradient(135deg, #007cba, #005a9e);
    color: white;
    border-color: #007cba;
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 25px;
    transform: translateY(70%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Notice Board Section Styles */
.notice-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.notice-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.notice-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #28a745;
    transition: width 0.3s ease;
}

.notice-item.urgent::before {
    background: #dc3545;
}

.notice-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.notice-item:hover::before {
    width: 8px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.notice-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-badge.urgent {
    background: rgba(220,53,69,0.15);
    color: #dc3545;
    border: 2px solid rgba(220,53,69,0.3);
}

.notice-badge.scheme {
    background: rgba(40,167,69,0.15);
    color: #28a745;
    border: 2px solid rgba(40,167,69,0.3);
}

.notice-badge.tender {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
    border: 2px solid rgba(255,193,7,0.3);
}

.notice-badge.meeting {
    background: rgba(0,123,255,0.15);
    color: #007bff;
    border: 2px solid rgba(0,123,255,0.3);
}

.notice-date {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.notice-item h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

.notice-item p {
    margin: 0 0 20px 0;
    color: #495057;
    line-height: 1.6;
    font-size: 15px;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.notice-department {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
}

/* E-Dawandi Section Styles */
.e-dawandi-services {
    margin-bottom: 50px;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

.service-card p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.quick-search {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 50px;
    border: 2px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.quick-search::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
}

.quick-search h3 {
    margin: 0 0 25px 0;
    text-align: center;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.form-select,
.form-input {
    padding: 15px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    color: #1a1a1a;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 4px rgba(0,124,186,0.15);
    transform: translateY(-2px);
}

.land-records h3 {
    margin: 0 0 30px 0;
    text-align: center;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.record-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.record-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #28a745;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.record-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 700;
}

.record-status.active {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(40,167,69,0.15);
    color: #28a745;
    border: 2px solid rgba(40,167,69,0.3);
}

.record-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(233,236,239,0.5);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.detail-row .value {
    color: #1a1a1a;
    font-weight: 700;
    text-align: right;
    font-size: 14px;
}

.record-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.record-actions .btn {
    flex: 1;
    text-align: center;
}

/* Enhanced Button Styles */
.btn {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #007cba, #005a9e);
    color: white;
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,124,186,0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, #007cba, #005a9e);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.btn--secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.btn--secondary:hover {
    box-shadow: 0 8px 25px rgba(108,117,125,0.4);
}

/* Section Structure and Visibility */
.section {
    display: block;
    padding: 80px 0;
    min-height: 600px;
}

.section.hidden {
    display: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .gallery-categories,
    .notice-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-categories::-webkit-scrollbar,
    .notice-categories::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-categories::-webkit-scrollbar-track,
    .notice-categories::-webkit-scrollbar-track {
        background: #f1f3f4;
        border-radius: 10px;
    }

    .gallery-categories::-webkit-scrollbar-thumb,
    .notice-categories::-webkit-scrollbar-thumb {
        background: #007cba;
        border-radius: 10px;
    }

    .gallery-item img {
        height: 220px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .quick-search {
        padding: 25px;
    }

    .record-actions {
        flex-direction: column;
        gap: 10px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-row .value {
        text-align: left;
        font-size: 16px;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gallery-item,
.notice-item,
.service-card,
.record-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.notice-item:nth-child(1) { animation-delay: 0.1s; }
.notice-item:nth-child(2) { animation-delay: 0.3s; }
.notice-item:nth-child(3) { animation-delay: 0.5s; }
.notice-item:nth-child(4) { animation-delay: 0.7s; }

/* Enhanced navigation active states */
.nav-link.active,
.bottom-nav-item.active {
    background-color: rgba(0,124,186,0.1);
}

.bottom-nav-item.active .bottom-nav-icon {
    color: #007cba;
}

.bottom-nav-item.active .bottom-nav-label {
    color: #007cba;
    font-weight: 600;
}


/* ==============================================
   DEMOGRAPHICS SECTION STYLES
   ============================================== */

/* Demographics Section */
.demographics-section {
    background: var(--color-bg-5);
    padding: var(--space-32) 0;
}

.demographics-section .section-header h2 {
    color: var(--color-text);
    margin-bottom: var(--space-16);
}

.demographics-section .section-header p {
    color: var(--color-text-secondary);
}

/* Population Section */
.population-section,
.employment-section,
.financial-section,
.projects-section {
    margin-bottom: var(--space-32);
}

.population-section h3,
.employment-section h3,
.financial-section h3,
.projects-section h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-24);
    text-align: center;
    padding: var(--space-16) 0;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    width: 100%;
}

/* Demographics Grid */
.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-32);
}

/* Demo Cards */
.demo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-standard);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal-400));
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-standard);
}

.demo-card:hover::before {
    transform: scaleX(1);
}

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

.demo-icon {
    font-size: 48px;
    margin-bottom: var(--space-16);
    display: block;
}

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

.demo-value {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
}

.demo-label {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.demo-percentage {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}

.demo-change {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    background: var(--color-bg-3);
    color: var(--color-success);
}

/* Special styling for different card types */
.population-card.total {
    background: linear-gradient(135deg, var(--color-primary), var(--color-teal-600));
    color: white;
}

.population-card.total .demo-value,
.population-card.total .demo-label,
.population-card.total .demo-percentage {
    color: white;
}

.employment-card {
    border-left: 4px solid var(--color-success);
}

.financial-card {
    border-left: 4px solid var(--color-warning);
}

/* Chart Containers */
.chart-container {
    display: flex;
    justify-content: center;
    margin: var(--space-32) 0;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-standard);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    width: 100%;
}

.chart-card:hover {
    transform: translateY(-4px);
}

.chart-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    background: white;
}

.chart-info {
    padding: var(--space-20);
    text-align: center;
}

.chart-info h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.chart-info p {
    color: var(--color-text-secondary);
    margin: 0;
}

/* Employment Grid */
.employment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-32);
}

.employment-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
}

/* Financial Grid */
.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-32);
}

.financial-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-24);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-standard);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

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

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-standard);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: var(--space-24);
}

.project-content h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-12);
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-20);
    line-height: var(--line-height-normal);
}

.project-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.project-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-8) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-stats .stat:last-child {
    border-bottom: none;
}

.project-stats .label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

.project-stats .value {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.status-active {
    background: var(--color-bg-3);
    color: var(--color-success) !important;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.status-completed {
    background: var(--color-bg-1);
    color: var(--color-primary) !important;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .demographics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
    }

    .employment-overview {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .financial-grid {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .financial-charts {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .chart-card img {
        height: 300px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: var(--space-16);
    }

    .project-stats .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .demographics-grid {
        grid-template-columns: 1fr;
    }

    .demo-card {
        padding: var(--space-16);
    }

    .demo-icon {
        font-size: 36px;
        margin-bottom: var(--space-12);
    }

    .demo-value {
        font-size: var(--font-size-2xl);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.demo-card:nth-child(1) { animation-delay: 0.1s; }
.demo-card:nth-child(2) { animation-delay: 0.2s; }
.demo-card:nth-child(3) { animation-delay: 0.3s; }
.demo-card:nth-child(4) { animation-delay: 0.4s; }

.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.3s; }
.project-card:nth-child(3) { animation-delay: 0.5s; }



/* Polished Hero Section - Desktop Half-Screen Layout */
.hero-content {
    display: flex;
    align-items: stretch;
    gap: 4rem;
    min-height: 600px;
}

.hero-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: center;
    padding: 2rem;
}

/* Hero Gallery Styles - Polished Version */
.hero-gallery-top {
    margin-bottom: 2.5rem;
    position: relative;
    width: 100%;
}

.gallery-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 3rem 2rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav.prev {
    left: 1.25rem;
}

.gallery-nav.next {
    right: 1.25rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.dot:hover::before, .dot.active::before {
    width: 100%;
    height: 100%;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

/* Hero Text Styling */
.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stat Cards Styling */
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 500;
}

/* Tablet Layout (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        gap: 2.5rem;
        min-height: 550px;
    }

    .gallery-image {
        height: 300px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }
}

/* Mobile Layout (≤768px) */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }

    .hero-left-section {
        order: 1;
    }

    .hero-stats {
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .hero-gallery-top {
        margin-bottom: 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .gallery-container {
        border-radius: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .gallery-image {
        height: 280px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .gallery-nav.prev {
        left: 0.75rem;
    }

    .gallery-nav.next {
        right: 0.75rem;
    }

    .gallery-caption {
        font-size: 0.9rem;
        padding: 2rem 1rem 1rem;
    }

    .hero-text {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .stat-card {
        padding: 1rem;
    }

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

    .stat-icon {
        font-size: 1.5rem;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-gallery-top {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    .gallery-image {
        height: 250px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 0.5rem;
    }

    .gallery-nav.next {
        right: 0.5rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .gallery-dots {
        padding: 1rem;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
    }
}

/* Animation improvements */
.gallery-slide {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide.active {
    opacity: 1;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .gallery-track,
    .gallery-slide,
    .gallery-nav,
    .dot,
    .stat-card {
        transition-duration: 0.1s;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-nav {
        border: 2px solid var(--primary);
    }

    .stat-card {
        border: 2px solid rgba(0, 0, 0, 0.1);
    }
}

/* Dark mode considerations */
@media (prefers-color-scheme: dark) {
    .stat-card {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gallery-dots {
        background: rgba(0, 0, 0, 0.8);
    }
}


/* News Ticker Styles */
.news-ticker {
    background: linear-gradient(135deg, #004d40, #00695c);
    color: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid #4dd0e1;
    position: relative;
    z-index: 1000;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 60s linear infinite;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.ticker-item {
    margin-right: 50px;
    padding: 0 20px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Tax Info Section Styles */
.tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tax-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tax-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tax-card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-teal-400);
}

.tax-card-header h3 {
    color: var(--color-teal-700);
    font-size: 1.25rem;
    margin: 0;
}

.tax-amount {
    background: var(--color-teal-500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.due-date {
    color: var(--color-red-500);
    font-weight: 500;
    margin-top: 0.5rem;
}

.tax-info-box {
    background: var(--color-bg-3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--color-teal-500);
}

.tax-info-box h4 {
    color: var(--color-teal-700);
    margin-bottom: 1rem;
}

.tax-info-box ul {
    list-style: none;
    padding: 0;
}

.tax-info-box li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.tax-info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-teal-500);
    font-weight: bold;
}

.contact-info {
    background: var(--color-teal-50);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--color-teal-800);
}

/* Government Schemes Section Styles */
.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scheme-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scheme-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.scheme-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.scheme-card h3 {
    color: var(--color-teal-700);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.scheme-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.scheme-details {
    background: var(--color-bg-1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.label {
    color: var(--color-text-secondary);
}

.value {
    color: var(--color-teal-700);
    font-weight: 600;
}

/* RTI Information Section Styles */
.rti-content {
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-teal-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-content h4 {
    color: var(--color-teal-700);
    margin-bottom: 0.5rem;
}

.rti-info-box {
    background: var(--color-bg-4);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--color-orange-400);
}

.rti-download {
    text-align: center;
    margin-top: 2rem;
}

/* Village Facilities Section Styles */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.facility-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.facility-card h3 {
    color: var(--color-teal-700);
    margin-bottom: 1.5rem;
}

.facility-stats {
    background: var(--color-bg-2);
    border-radius: 8px;
    padding: 1rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.stat:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stat-label {
    color: var(--color-text-secondary);
}

.stat-value {
    color: var(--color-teal-700);
    font-weight: 600;
}

/* Enhanced Footer Styles */
.enhanced-footer {
    background: linear-gradient(135deg, var(--color-charcoal-800), var(--color-slate-900));
    color: var(--color-white);
    margin-top: 3rem;
}

.footer-top {
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--color-teal-300);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-teal-400);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    display: block;
}

.footer-links a:hover {
    color: var(--color-teal-300);
    padding-left: 0.5rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--color-gray-300);
    text-decoration: none;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-teal-300);
}

.social-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.emergency-contacts {
    background: rgba(255, 84, 89, 0.1);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--color-red-400);
}

.emergency-contacts h5 {
    color: var(--color-red-400);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.emergency-item {
    margin-bottom: 0.5rem;
    color: var(--color-gray-200);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0.25rem 0;
    color: var(--color-gray-300);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--color-teal-600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .news-ticker {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .ticker-content {
        animation-duration: 45s;
    }

    .tax-grid,
    .schemes-grid,
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rti-info-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tax-card,
    .scheme-card,
    .facility-card {
        padding: 1.25rem;
    }

    .scheme-icon,
    .facility-icon {
        font-size: 2.5rem;
    }

    .footer-top {
        padding: 2rem 0 1.5rem;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Section Navigation Enhancement */
.section {
    scroll-margin-top: 100px;
}

/* Navigation Button Updates (if needed) */
.nav-link[href="#tax-info"]:after { content: "💰"; }
.nav-link[href="#schemes"]:after { content: "🎯"; }
.nav-link[href="#rti"]:after { content: "📋"; }
.nav-link[href="#facilities"]:after { content: "🏘️"; }



/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-teal-500);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-teal-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--color-teal-500);
}

.toast--success {
    border-left-color: #4caf50;
}

.toast--error {
    border-left-color: #f44336;
}

.toast--warning {
    border-left-color: #ff9800;
}

.toast--info {
    border-left-color: #2196f3;
}

.toast-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
    color: var(--color-text);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.toast-close:hover {
    color: var(--color-text);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness for Fixed Elements */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .toast {
        padding: 0.75rem;
    }
}

.sabhasad-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    flex-shrink: 0;
    height: 280px;
    padding-bottom: 0;
}

.sabhasad-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--duration-normal) var(--ease-standard);
    display: block;
    background: var(--color-secondary);
}

