/**
 * Stream View Theme - Brand Identity
 * Design Philosophy: Ethereal Professionalism
 * Version: 1.0
 * Generated: November 23, 2025
 */

:root {
  /* ===== BACKGROUND COLORS ===== */
  /* Dark-mode-first design for extended viewing comfort */
  --bg-primary: #0A1622;        /* Deep Slate - Main canvas, body background */
  --bg-elevated: #152331;       /* Elevated Slate - Cards, panels, raised surfaces */
  --bg-surface: #1F2F3F;        /* Surface - Modals, dropdowns, tooltips */
  --border-dark: #2A3A4A;       /* Border Dark - Subtle dividers, card borders */
  --border-light: #3A4A5A;      /* Border Light - Prominent borders, hover states */

  /* ===== TEXT COLORS ===== */
  /* WCAG AA compliant - tested against #0A1622 background */
  --text-primary: #E8F4F8;      /* 14.2:1 contrast - Headlines, primary content */
  --text-secondary: #A5B8C1;    /* 7.8:1 contrast - Supporting text, descriptions */
  --text-tertiary: #6B7C87;     /* 4.6:1 contrast - Placeholders, disabled text */
  --text-inverse: #0A1622;      /* Dark text for light/colored backgrounds */

  /* ===== TEAL ACCENT (Primary Brand Color) ===== */
  /* Cool, calming, professional - used for navigation and active states */
  --teal-700: #004D4F;          /* Pressed state, darkest variant */
  --teal-600: #006668;          /* Hover state for buttons */
  --teal-500: #007B7F;          /* Default state - PRIMARY brand color */
  --teal-400: #00999E;          /* Active/selected state - brightest commonly used */
  --teal-300: #33B0B4;          /* Focus rings, highlights */
  --teal-200: #80D0D3;          /* Subtle backgrounds */
  --teal-100: #CCE9EA;          /* Very subtle backgrounds, badges */

  /* ===== COPPER ACCENT (Warm Accent Color) ===== */
  /* Warm, inviting, premium - used for CTAs and important actions */
  --copper-700: #8B4D25;        /* Pressed state, darkest variant */
  --copper-600: #A85B2E;        /* Hover state for buttons */
  --copper-500: #C57B3D;        /* Default state - PRIMARY CTA color */
  --copper-400: #D99558;        /* Active state, lighter variant */
  --copper-300: #E5B185;        /* Soft glow, highlights */
  --copper-200: #F0D4B8;        /* Subtle backgrounds */
  --copper-100: #F8E9DC;        /* Very subtle backgrounds */

  /* ===== SEMANTIC COLORS ===== */
  /* Consistent semantic meaning across all components */

  /* Success - Green tones for positive actions */
  --color-success-dark: #2D5A23;    /* Pressed state */
  --color-success: #4B8B3B;         /* Default success state */
  --color-success-light: #7BB06C;   /* Hover, highlights */
  --color-success-subtle: #E8F5E5;  /* Background for success alerts */

  /* Warning - Gold tones for caution */
  --color-warning-dark: #8B6914;    /* Pressed state */
  --color-warning: #D4A017;         /* Default warning state */
  --color-warning-light: #E5B84A;   /* Hover, highlights */
  --color-warning-subtle: #FFF8E5;  /* Background for warning alerts */

  /* Error - Red tones for errors and critical actions */
  --color-error-dark: #8B2C2C;      /* Pressed state */
  --color-error: #C93B3B;           /* Default error state */
  --color-error-light: #E06B6B;     /* Hover, highlights */
  --color-error-subtle: #FEE8E8;    /* Background for error alerts */

  /* Info - Blue tones for informational content */
  --color-info-dark: #1A4D6B;       /* Pressed state */
  --color-info: #2B7BA3;            /* Default info state */
  --color-info-light: #5CA3CC;      /* Hover, highlights */
  --color-info-subtle: #E5F3F9;     /* Background for info alerts */

  /* ===== SHADOW SYSTEM ===== */
  /* Elevation through shadow depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.4);

  /* Colored shadows for emphasis */
  --shadow-copper: 0 8px 24px rgba(197, 123, 61, 0.25);
  --shadow-teal: 0 8px 24px rgba(0, 123, 127, 0.25);

  /* ===== OPACITY SCALE ===== */
  /* For overlays, hover effects, and transparency */
  --opacity-0: 0;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-100: 1;

  /* ===== SPACING SCALE (Bootstrap compatible) ===== */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;   /* For circular elements */

  /* ===== TRANSITIONS ===== */
  /* Consistent animation timing */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* ===== BASE STYLES ===== */
/* Apply theme to body and base elements */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITY CLASSES ===== */
/* Reusable classes for common styling patterns */

/* Background utilities */
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-elevated { background-color: var(--bg-elevated) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }

/* Text color utilities */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-inverse { color: var(--text-inverse) !important; }

/* Accent color utilities */
.text-teal { color: var(--teal-500) !important; }
.text-copper { color: var(--copper-500) !important; }
.bg-teal { background-color: var(--teal-500) !important; }
.bg-copper { background-color: var(--copper-500) !important; }

/* Border utilities */
.border-dark { border-color: var(--border-dark) !important; }
.border-light { border-color: var(--border-light) !important; }
.border-teal { border-color: var(--teal-500) !important; }
.border-copper { border-color: var(--copper-500) !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Glow effects */
.glow-copper {
  box-shadow:
    0 0 20px rgba(197, 123, 61, 0.3),
    0 0 40px rgba(197, 123, 61, 0.1);
}

.glow-teal {
  box-shadow:
    0 0 20px rgba(0, 153, 158, 0.3),
    0 0 40px rgba(0, 153, 158, 0.1);
}

.glow-ambient {
  box-shadow:
    0 4px 20px rgba(0, 123, 127, 0.15),
    0 0 40px rgba(197, 123, 61, 0.1);
}

/* ===== LINK STYLES ===== */
a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-400);
  text-decoration: none;
}

a:visited {
  color: var(--teal-600);
}

/* ===== SELECTION HIGHLIGHT ===== */
::selection {
  background-color: var(--teal-500);
  color: var(--text-inverse);
}

::-moz-selection {
  background-color: var(--teal-500);
  color: var(--text-inverse);
}

/* ===== SCROLLBAR STYLING (Webkit browsers) ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-600);
}

/* ===== FOCUS STYLES ===== */
/* Ensure focus is always visible for accessibility */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .glow-copper,
  .glow-teal,
  .glow-ambient {
    box-shadow: none !important;
  }
}

/* ===== CTA ENHANCEMENT CLASSES (Week 8 Day 2) ===== */

/* Copper Glow - Standard Intensity */
.btn-glow-copper {
  box-shadow:
    0 0 20px rgba(197, 123, 61, 0.3),
    0 0 40px rgba(197, 123, 61, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 300ms ease-in-out;
}

.btn-glow-copper:hover {
  box-shadow:
    0 0 30px rgba(197, 123, 61, 0.5),
    0 0 60px rgba(197, 123, 61, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.btn-glow-copper:active {
  box-shadow:
    0 0 15px rgba(197, 123, 61, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0) scale(1);
}

/* Copper Glow - Intense (for hero CTAs) */
.btn-glow-copper-intense {
  box-shadow:
    0 0 30px rgba(197, 123, 61, 0.5),
    0 0 60px rgba(197, 123, 61, 0.3),
    0 0 90px rgba(197, 123, 61, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.3);
  animation: pulse-copper 2s ease-in-out infinite;
}

@keyframes pulse-copper {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(197, 123, 61, 0.5),
      0 0 60px rgba(197, 123, 61, 0.3),
      0 0 90px rgba(197, 123, 61, 0.1),
      0 4px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(197, 123, 61, 0.6),
      0 0 80px rgba(197, 123, 61, 0.4),
      0 0 120px rgba(197, 123, 61, 0.2),
      0 6px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Copper Glow - Subtle (for secondary emphasis) */
.btn-glow-copper-subtle {
  box-shadow:
    0 0 10px rgba(197, 123, 61, 0.2),
    0 0 20px rgba(197, 123, 61, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-glow-copper-subtle:hover {
  box-shadow:
    0 0 15px rgba(197, 123, 61, 0.3),
    0 0 30px rgba(197, 123, 61, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.25);
}

/* Teal Glow (for secondary CTAs) */
.btn-glow-teal {
  box-shadow:
    0 0 20px rgba(0, 153, 158, 0.3),
    0 0 40px rgba(0, 153, 158, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 300ms ease-in-out;
}

.btn-glow-teal:hover {
  box-shadow:
    0 0 30px rgba(0, 153, 158, 0.5),
    0 0 60px rgba(0, 153, 158, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1.02);
}

/* Gradient Background for Featured CTAs */
.btn-gradient-copper {
  background: linear-gradient(135deg, var(--copper-600) 0%, var(--copper-400) 100%);
  border: none;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.btn-gradient-copper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 500ms ease-in-out;
}

.btn-gradient-copper:hover::before {
  left: 100%;
}

.btn-gradient-copper:hover {
  background: linear-gradient(135deg, var(--copper-500) 0%, var(--copper-300) 100%);
}

/* Gradient Teal */
.btn-gradient-teal {
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-400) 100%);
  border: none;
  color: var(--text-inverse);
}

.btn-gradient-teal:hover {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-300) 100%);
}

/* CTA Container Spacing */
.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cta-group .btn {
  flex-shrink: 0;
}

/* Responsive CTA */
@media (max-width: 576px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-group .btn {
    width: 100%;
  }
}

/* ===== NAVIGATION ACTIVE STATES (Week 8 Day 2) ===== */

/* Sidebar Navigation Base */
.nav-item {
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: relative;
  margin-bottom: 0.25rem;
}

.nav-item:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  text-decoration: none;
}

.nav-item.active {
  color: var(--teal-400);
  background-color: rgba(0, 153, 158, 0.1);
  border-left: 3px solid var(--teal-400);
  padding-left: calc(1rem - 3px);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal-300) 0%, var(--teal-500) 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Navigation Icons */
.nav-item i {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
  transition: color var(--transition-fast);
}

.nav-item:hover i {
  color: var(--teal-400);
}

.nav-item.active i {
  color: var(--teal-400);
}

/* Navigation Text */
.nav-item-text {
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-item.active .nav-item-text {
  font-weight: 600;
}

/* Navigation Badge (for notification counts) */
.nav-item .badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Top Navbar */
.navbar-nav .nav-link {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.navbar-nav .nav-link.active {
  color: var(--teal-400);
  background-color: rgba(0, 153, 158, 0.1);
  border-bottom: 2px solid var(--teal-400);
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-item {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--teal-400);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--border-light);
  padding: 0 0.5rem;
}

/* Tabs Navigation */
.nav-tabs {
  border-bottom: 1px solid var(--border-dark);
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  transition: all var(--transition-base);
  background-color: transparent;
}

.nav-tabs .nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border-bottom-color: var(--border-light);
}

.nav-tabs .nav-link.active {
  color: var(--teal-400);
  background-color: transparent;
  border-bottom-color: var(--teal-400);
}

/* Pills Navigation */
.nav-pills .nav-link {
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  transition: all var(--transition-base);
}

.nav-pills .nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.nav-pills .nav-link.active {
  color: var(--text-inverse);
  background-color: var(--teal-500);
}

/* Sidebar Layout */
.sidebar {
  background-color: var(--bg-elevated);
  border-right: 1px solid var(--border-dark);
  padding: 1.5rem 1rem;
  min-height: 100vh;
}

.sidebar-header {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal-400);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand:hover {
  color: var(--teal-300);
  text-decoration: none;
}

/* Navigation Section Headers */
.nav-section-header {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1rem 0.5rem;
  margin-top: 1rem;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
  border-color: var(--border-light);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:hover {
  background-color: var(--bg-surface);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 127, 0.2);
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E8F4F8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    z-index: 1050;
    transition: left 300ms ease-in-out;
  }

  .sidebar.show {
    left: 0;
    box-shadow: var(--shadow-xl);
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav-item.active {
    border-left: none;
    border-bottom-color: var(--teal-400);
    padding-left: 1rem;
  }
}

/* ===== CARD COMPONENTS (Week 8 Day 4) ===== */
/* Elevated surfaces for content grouping with brand identity */

/* Base Card Styles */
.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  overflow: hidden;
}

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

/* Card Header */
.card-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-primary);
  font-weight: 600;
}

.card-header:first-child {
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

/* Card Body */
.card-body {
  padding: var(--spacing-lg);
  color: var(--text-primary);
}

.card-body .card-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.card-body .card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Card Footer */
.card-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-dark);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.card-footer:last-child {
  border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}

/* Featured Card (Active Stream - Copper Accent) */
.card.featured {
  border-color: var(--copper-500);
  border-width: 2px;
  box-shadow:
    0 0 20px rgba(197, 123, 61, 0.15),
    var(--shadow-md);
}

.card.featured:hover {
  border-color: var(--copper-400);
  box-shadow:
    0 0 30px rgba(197, 123, 61, 0.25),
    var(--shadow-lg);
}

.card.featured .card-header {
  background: linear-gradient(135deg,
    rgba(197, 123, 61, 0.1) 0%,
    rgba(197, 123, 61, 0.05) 100%
  );
  border-bottom-color: var(--copper-500);
}

/* Platform Card (Teal Left Border) */
.card.platform {
  border-left: 3px solid var(--teal-500);
  padding-left: calc(var(--spacing-lg) - 3px);
}

.card.platform:hover {
  border-left-color: var(--teal-400);
}

.card.platform .card-header {
  background: linear-gradient(90deg,
    rgba(0, 123, 127, 0.1) 0%,
    transparent 100%
  );
}

/* Success Card Variant */
.card.card-success {
  border-color: var(--color-success);
  background: linear-gradient(135deg,
    rgba(75, 139, 59, 0.05) 0%,
    transparent 100%
  );
}

/* Warning Card Variant */
.card.card-warning {
  border-color: var(--color-warning);
  background: linear-gradient(135deg,
    rgba(212, 160, 23, 0.05) 0%,
    transparent 100%
  );
}

/* Error Card Variant */
.card.card-error {
  border-color: var(--color-error);
  background: linear-gradient(135deg,
    rgba(201, 59, 59, 0.05) 0%,
    transparent 100%
  );
}

/* Info Card Variant */
.card.card-info {
  border-color: var(--color-info);
  background: linear-gradient(135deg,
    rgba(43, 123, 163, 0.05) 0%,
    transparent 100%
  );
}

/* Card Spacing */
.card + .card {
  margin-top: var(--spacing-lg);
}

/* Responsive Card Padding */
@media (max-width: 768px) {
  .card-body {
    padding: var(--spacing-md);
  }

  .card-header,
  .card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ===== PROGRESS BARS ===== */
/* Teal gradient progress indicators for analytics */

.progress {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  height: 1rem;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar {
  background: linear-gradient(90deg,
    var(--teal-600) 0%,
    var(--teal-500) 50%,
    var(--teal-400) 100%
  );
  height: 100%;
  transition: width var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Progress Bar Variants */
.progress-bar.storage-warning {
  background: linear-gradient(90deg,
    var(--color-warning-dark) 0%,
    var(--color-warning) 50%,
    var(--color-warning-light) 100%
  );
}

.progress-bar.storage-critical {
  background: linear-gradient(90deg,
    var(--color-error-dark) 0%,
    var(--color-error) 50%,
    var(--color-error-light) 100%
  );
}

.progress-bar.bg-success {
  background: linear-gradient(90deg,
    var(--color-success-dark) 0%,
    var(--color-success) 50%,
    var(--color-success-light) 100%
  );
}

/* Animated Progress Bar */
.progress-bar.animated {
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Progress Bar Sizes */
.progress.progress-sm {
  height: 0.5rem;
}

.progress.progress-lg {
  height: 1.5rem;
}

.progress.progress-lg .progress-bar {
  font-size: 0.875rem;
}

/* ===== BADGES (Week 8 Day 4) ===== */
/* Colored badges for status, counts, and features */

.badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge.bg-copper {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-400)) !important;
  color: var(--text-inverse);
}

.badge.bg-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400)) !important;
  color: var(--text-inverse);
}

.badge.live {
  background-color: var(--color-error);
  color: #FEE8E8;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.badge.offline {
  background-color: var(--border-light);
  color: var(--text-secondary);
}

.badge.premium {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-400));
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(197, 123, 61, 0.3);
}

/* Alert Sizes */
.alert-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* ===== TYPOGRAPHY (Week 8 Day 4) ===== */
/* Heading hierarchy and text styling */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.25px;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* Page Titles */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.page-title i {
  color: var(--copper-500);
}

/* Section Headings */
.section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--teal-500);
}

/* Lead Text */
.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Small Text */
small, .small {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Strong/Bold */
strong, .fw-bold {
  font-weight: 700;
  color: var(--text-primary);
}

/* Text Utilities */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-capitalize {
  text-transform: capitalize;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .page-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3, .section-heading {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.125rem;
  }
}

/* ===== SPACING UTILITIES ===== */
/* Additional spacing beyond Bootstrap defaults */

.mt-6 { margin-top: var(--spacing-2xl) !important; }
.mb-6 { margin-bottom: var(--spacing-2xl) !important; }
.my-6 {
  margin-top: var(--spacing-2xl) !important;
  margin-bottom: var(--spacing-2xl) !important;
}

.pt-6 { padding-top: var(--spacing-2xl) !important; }
.pb-6 { padding-bottom: var(--spacing-2xl) !important; }
.py-6 {
  padding-top: var(--spacing-2xl) !important;
  padding-bottom: var(--spacing-2xl) !important;
}

/* Card Spacing Adjustments */
.card-body > *:last-child {
  margin-bottom: 0;
}

.card-title + .card-subtitle {
  margin-top: calc(var(--spacing-sm) * -1);
}

/* List Spacing */
ul, ol {
  padding-left: var(--spacing-lg);
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

/* Paragraph Spacing */
p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Enhanced Responsive Card Spacing */
@media (max-width: 576px) {
  .card-body {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .card-header,
  .card-footer {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* ===== REDUCED ANIMATIONS MODE ===== */
/* Applied via JavaScript when user disables animations in Settings */
html.reduce-animations,
html.reduce-animations *,
html.reduce-animations *::before,
html.reduce-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Also hide parallax background when animations disabled */
html.reduce-animations .parallax-container {
  display: none;
}
