/* ============================================
   STINGREX - AURORA GLASS DESIGN SYSTEM
   Modern, Responsive, Light/Dark Mode
   ============================================ */

/* ----------------------------------------
   1. CSS VARIABLES & THEME SYSTEM
   ---------------------------------------- */
:root {
  /* Light Mode (Default) - Warm Paper Variant */
  --bg-primary: #F5F0E8;
  --bg-secondary: #EDE8DE;
  --bg-tertiary: #E5DFD3;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-solid: #FFFCF7;
  --surface-hover: rgba(255, 252, 247, 0.98);
  
  /* Text Colors */
  --text-primary: #1A1612;
  --text-secondary: #4A433A;
  --text-tertiary: #7A7268;
  --text-muted: #A39B8F;
  
  /* Brand Colors */
  --primary: #A68A4A;
  --primary-light: #B8995A;
  --primary-dark: #7A632E;
  --primary-gradient: linear-gradient(135deg, #A68A4A 0%, #C4A265 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(166, 138, 74, 0.15) 0%, rgba(196, 162, 101, 0.1) 100%);
  
  --secondary: #B8956A;
  --secondary-light: #C9A57A;
  --accent: #D4AF37;
  
  /* Semantic Colors - Muted Premium Palette */
  --success: #6B8E6B;
  --success-light: #D4E5D4;
  --warning: #C4A265;
  --warning-light: #F0E6D0;
  --danger: #B0706A;
  --danger-light: #F0D8D5;
  --info: #6B8FA8;
  --info-light: #D8E6F0;
  
  /* UI Colors */
  --border-color: rgba(166, 138, 74, 0.15);
  --border-strong: rgba(166, 138, 74, 0.3);
  --shadow-color: rgba(26, 22, 18, 0.08);
  --shadow-lg: rgba(26, 22, 18, 0.15);
  --backdrop: rgba(26, 22, 18, 0.5);
  
  /* Sidebar */
  --sidebar-bg: #FFFCF7;
  --sidebar-text: #7A7268;
  --sidebar-text-active: #0C0E12;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 252, 247, 0.85);
  --glass-border: rgba(196, 162, 101, 0.2);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(26, 22, 18, 0.05);
  --shadow: 0 4px 6px -1px rgba(26, 22, 18, 0.08), 0 2px 4px -2px rgba(26, 22, 18, 0.08);
  --shadow-md: 0 10px 15px -3px rgba(26, 22, 18, 0.1), 0 4px 6px -4px rgba(26, 22, 18, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(26, 22, 18, 0.12), 0 8px 10px -6px rgba(26, 22, 18, 0.12);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0C0E12;
  --bg-secondary: #12151A;
  --bg-tertiary: #1A1F26;
  --surface: rgba(26, 31, 38, 0.85);
  --surface-solid: #1A1F26;
  --surface-hover: rgba(38, 44, 54, 0.9);
  
  --text-primary: #F0E8DC;
  --text-secondary: #C8BDB0;
  --text-tertiary: #9A8F82;
  --text-muted: #6B6258;
  
  --primary: #C4A265;
  --primary-light: #D4B97A;
  --primary-dark: #8B7347;
  --primary-gradient: linear-gradient(135deg, #C4A265 0%, #D4AF37 100%);
  --primary-gradient-soft: linear-gradient(135deg, rgba(196, 162, 101, 0.2) 0%, rgba(212, 175, 55, 0.15) 100%);
  
  --secondary: #B8956A;
  --secondary-light: #C9A57A;
  --accent: #D4AF37;
  
  --border-color: rgba(196, 162, 101, 0.12);
  --border-strong: rgba(196, 162, 101, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --backdrop: rgba(0, 0, 0, 0.75);
  
  --sidebar-bg: #0F1216;
  --sidebar-text: #9A8F82;
  --sidebar-text-active: #F0E8DC;
  
  --glass-bg: rgba(26, 31, 38, 0.8);
  --glass-border: rgba(196, 162, 101, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
}

/* Smooth theme transition */
*, *::before, *::after {
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-fast),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ----------------------------------------
   2. BASE STYLES & RESET
   ---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background: var(--primary);
  color: #0C0E12;
}

/* ----------------------------------------
   3. UTILITY CLASSES
   ---------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------
   4. LOGIN PAGE
   ---------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0C0E12 0%, #12151A 50%, #1A1F26 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.2) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

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

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .login-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
}

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

.login-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, #C4A265 0%, #D4AF37 50%, #E8D5A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.login-header p {
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ----------------------------------------
   5. APP LAYOUT
   ---------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 4px 0 24px var(--shadow-color);
}

.sidebar-header {
  padding: var(--space-xl);
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.sidebar-header h2 {
  color: #0C0E12;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 var(--space-xs) 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

.sidebar-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-gradient);
  color: var(--sidebar-text-active);
  box-shadow: 0 4px 12px rgba(196, 162, 101, 0.35);
}

.nav-item.active svg {
  stroke-width: 2.5;
}

.nav-item svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.nav-item:hover svg {
  transform: scale(1.1);
}

.nav-item .badge {
  margin-left: auto;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: var(--space-sm) var(--space-md);
}

.sidebar-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(196, 162, 101, 0.3);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details small {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}

.sidebar-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Theme Toggle Button */
.theme-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.btn-logout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-xl);
  min-height: 100vh;
  max-width: calc(100% - 280px);
}

/* ----------------------------------------
   6. PAGE HEADER
   ---------------------------------------- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ----------------------------------------
   7. BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #0C0E12;
  box-shadow: 0 4px 14px rgba(196, 162, 101, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(196, 162, 101, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: var(--space-sm);
}

.btn-text:hover {
  background: var(--primary-gradient-soft);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  transform: scale(1.05);
}

.btn-icon.btn-danger:hover {
  background: var(--danger);
}

/* ----------------------------------------
   8. FORMS
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

/* ----------------------------------------
   9. ALERTS
   ---------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-success {
  background: var(--success-light);
  color: #2D5A2D;
  border: 1px solid rgba(107, 142, 107, 0.3);
}

[data-theme="dark"] .alert-success {
  background: rgba(107, 142, 107, 0.15);
  color: #A8D5A8;
}

.alert-error {
  background: var(--danger-light);
  color: #7A3A34;
  border: 1px solid rgba(176, 112, 106, 0.3);
}

[data-theme="dark"] .alert-error {
  background: rgba(176, 112, 106, 0.15);
  color: #E8B8B0;
}

.alert-warning {
  background: var(--warning-light);
  color: #6B5A2E;
  border: 1px solid rgba(196, 162, 101, 0.3);
}

[data-theme="dark"] .alert-warning {
  background: rgba(196, 162, 101, 0.15);
  color: #E8D5A0;
}

.alert-info {
  background: var(--info-light);
  color: #2D4A5A;
  border: 1px solid rgba(107, 143, 168, 0.3);
}

[data-theme="dark"] .alert-info {
  background: rgba(107, 143, 168, 0.15);
  color: #A8C8E0;
}

/* ----------------------------------------
   10. STATS CARDS
   ---------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.dashboard-grid .stats-row {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  z-index: 1;
}

.stat-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  z-index: 200;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-clients .stat-icon {
  background: linear-gradient(135deg, #C4A265 0%, #D4B97A 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(196, 162, 101, 0.25);
}

.stat-services .stat-icon {
  background: linear-gradient(135deg, #B8956A 0%, #C9A57A 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(184, 149, 106, 0.25);
}

.stat-ssm .stat-icon {
  background: linear-gradient(135deg, #6B8E6B 0%, #8AAF8A 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(107, 142, 107, 0.25);
}

.stat-pssm .stat-icon {
  background: linear-gradient(135deg, #C4A265 0%, #D4AF37 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(196, 162, 101, 0.25);
}

.stat-verificare .stat-icon,
.stat-equipment .stat-icon {
  background: linear-gradient(135deg, #9A8A9A 0%, #B5A5B5 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(154, 138, 154, 0.25);
}

.stat-hidranti .stat-icon,
.stat-hydrant .stat-icon {
  background: linear-gradient(135deg, #7A8E9E 0%, #9AADBC 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(122, 142, 158, 0.25);
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.stat-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* New Stat Card Types */
.stat-equipment-expiring .stat-icon {
  background: linear-gradient(135deg, #D4A03C 0%, #E8B84A 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(212, 160, 60, 0.25);
}

.stat-contracts .stat-icon {
  background: linear-gradient(135deg, #B87333 0%, #CD853F 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(184, 115, 51, 0.25);
}

.stat-renewals .stat-icon {
  background: linear-gradient(135deg, #C4908A 0%, #D4A49E 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(196, 144, 138, 0.25);
}

.stat-risk .stat-icon {
  background: linear-gradient(135deg, #B0706A 0%, #C4807A 100%);
  color: #0C0E12;
  box-shadow: 0 8px 16px rgba(176, 112, 106, 0.25);
}

/* Collapsible Stats */
.stats-collapsible {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  grid-column: 1 / -1;
  position: relative;
  z-index: 200;
}

.stats-collapsible.collapsed {
  display: none;
}

/* Desktop: force exactly 5 stat cards per row */
@media (min-width: 1025px) {
  .dashboard-grid .stats-row,
  .stats-collapsible {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stats-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stats-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow);
}

.stats-toggle-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stats-toggle-btn svg {
  transition: transform 0.3s ease;
}

.stats-toggle-btn.expanded svg {
  transform: rotate(180deg);
}

/* ----------------------------------------
   11. DASHBOARD LAYOUT
   ---------------------------------------- */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Dashboard Alerts - Compact */
.dashboard-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.alert-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.alert-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.alert-item.alert-warning {
  background: linear-gradient(135deg, #F0E6D0 0%, #E8D5A0 100%);
  border-color: #C4A265;
}

.alert-item.alert-equipment {
  background: linear-gradient(135deg, #F0D8D5 0%, #E8C0BC 100%);
  border-color: #B0706A;
}

.alert-item svg {
  flex-shrink: 0;
}

.alert-item span {
  font-size: 0.875rem;
}

/* Quick Actions - Compact */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.quick-action-btn:hover {
  background: var(--primary);
  color: #0C0E12;
  border-color: var(--primary);
}

.quick-action-btn svg {
  flex-shrink: 0;
}

/* Dashboard Columns */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Table Container Compact */
.table-container {
  padding: 0;
}

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

.data-table th,
.data-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

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

.data-table td {
  font-size: 0.875rem;
  color: var(--text-primary);
}

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

.dashboard-section {
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Compact Expiring List */
.expiring-list .expiring-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.expiring-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.expiring-info strong {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expiring-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expiring-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.expiring-badge.urgent { background: #F0D8D5; color: #B0706A; }
.expiring-badge.warning { background: #F0E6D0; color: #C4A265; }
.expiring-badge.normal { background: #D4E5D4; color: #6B8E6B; }

/* Revenue Section */
.revenue-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl);
  align-items: center;
}

.revenue-total {
  text-align: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, #6B8E6B 0%, #8AAF8A 100%);
  border-radius: var(--radius-lg);
  color: white;
}

.revenue-amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.revenue-amount span {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
}

.revenue-label {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.revenue-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.revenue-bar-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

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

.bar-label strong {
  color: var(--text-primary);
}

.bar-track {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.bar-fill.bar-ssm { background: linear-gradient(90deg, #6B8E6B 0%, #8AAF8A 100%); }
.bar-fill.bar-pssm { background: linear-gradient(90deg, #C4A265 0%, #D4AF37 100%); }
.bar-fill.bar-stingator { background: linear-gradient(90deg, #9A8A9A 0%, #B5A5B5 100%); }
.bar-fill.bar-hidrant { background: linear-gradient(90deg, #7A8E9E 0%, #9AADBC 100%); }

/* Simple Revenue Bar */
.dashboard-revenue-simple {
  background: var(--surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.dashboard-revenue-simple .revenue-total {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, #6B8E6B 0%, #8AAF8A 100%);
  border-radius: var(--radius-md);
  color: white;
  min-width: 180px;
}

.dashboard-revenue-simple .revenue-amount {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-revenue-simple .revenue-amount span {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
}

.dashboard-revenue-simple .revenue-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 2px;
}

.dashboard-revenue-simple .revenue-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 992px) {
  .dashboard-revenue-simple {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .dashboard-revenue-simple .revenue-total {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .dashboard-revenue-simple .revenue-bars {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-actions {
    justify-content: center;
  }
  
  .quick-action-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-revenue-simple .revenue-bars {
    grid-template-columns: 1fr;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.section-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ----------------------------------------
   12. TABLES
   ---------------------------------------- */
.table-container {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table thead {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

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

.data-table .actions {
  display: flex;
  gap: var(--space-sm);
  white-space: nowrap;
}

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

/* ----------------------------------------
   13. BADGES
   ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-ssm {
  background: linear-gradient(135deg, #D4E5D4 0%, #B8D4B8 100%);
  color: #2D5A2D;
}

[data-theme="dark"] .badge-ssm {
  background: rgba(107, 142, 107, 0.2);
  color: #A8D5A8;
}

.badge-pssm {
  background: linear-gradient(135deg, #F0E6D0 0%, #E8D5A0 100%);
  color: #6B5A2E;
}

[data-theme="dark"] .badge-pssm {
  background: rgba(196, 162, 101, 0.2);
  color: #E8D5A0;
}

.badge-verificare_stingatoare,
.badge-stingatoare,
.badge-equipment {
  background: linear-gradient(135deg, #E8E0E8 0%, #D4C8D4 100%);
  color: #5A4A5A;
}

[data-theme="dark"] .badge-verificare_stingatoare,
[data-theme="dark"] .badge-stingatoare,
[data-theme="dark"] .badge-equipment {
  background: rgba(154, 138, 154, 0.2);
  color: #D4C8D4;
}

.badge-verificare_hidranti,
.badge-hidranti,
.badge-hydrant {
  background: linear-gradient(135deg, #D8E2EC 0%, #C0D0E0 100%);
  color: #3A5A6A;
}

[data-theme="dark"] .badge-verificare_hidranti,
[data-theme="dark"] .badge-hidranti,
[data-theme="dark"] .badge-hydrant {
  background: rgba(122, 142, 158, 0.2);
  color: #B8D0E0;
}

.badge-warning {
  background: var(--warning);
  color: #0C0E12;
}

.badge-danger {
  background: var(--danger);
  color: #0C0E12;
}

.badge-success {
  background: var(--success);
  color: #0C0E12;
}

.badge-secondary {
  background: var(--secondary);
  color: #0C0E12;
}

.badge-info {
  background: var(--info);
  color: #0C0E12;
}

.status-badge {
  display: inline-flex;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-active {
  background: rgba(107, 142, 107, 0.15);
  color: var(--success);
}

.status-inactive {
  background: rgba(122, 114, 104, 0.15);
  color: var(--text-tertiary);
}

.status-suspended,
.status-cancelled {
  background: rgba(176, 112, 106, 0.15);
  color: var(--danger);
}

.status-expired {
  background: rgba(196, 162, 101, 0.15);
  color: var(--warning);
}

.status-pending {
  background: rgba(107, 143, 168, 0.15);
  color: var(--info);
}

/* Urgency Badges */
.urgency-badge {
  display: inline-flex;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.urgency-urgent {
  background: var(--danger);
  color: #0C0E12;
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 112, 106, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(176, 112, 106, 0); }
}

.urgency-high {
  background: var(--warning);
  color: white;
}

.urgency-medium {
  background: var(--info);
  color: white;
}

.urgency-low {
  background: var(--success);
  color: white;
}

/* ----------------------------------------
   14. EXPIRING LIST
   ---------------------------------------- */
.expiring-list {
  padding: var(--space-lg);
}

.expiring-item {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--info);
  transition: all var(--transition-fast);
}

.expiring-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.expiring-item.warning {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

[data-theme="dark"] .expiring-item.warning {
  background: rgba(196, 162, 101, 0.1);
}

.expiring-item.urgent {
  border-left-color: var(--danger);
  background: var(--danger-light);
  animation: pulse-urgent-item 2s ease-in-out infinite;
}

[data-theme="dark"] .expiring-item.urgent {
  background: rgba(176, 112, 106, 0.1);
}

@keyframes pulse-urgent-item {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.expiring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.expiring-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.expiring-date {
  font-weight: 600;
  color: var(--text-primary);
}

.empty-state {
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

/* ----------------------------------------
   15. REVENUE SECTION
   ---------------------------------------- */
.revenue-summary {
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  background: var(--primary-gradient-soft);
  border-radius: var(--radius-lg);
}

.revenue-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 200px;
}

.revenue-card h3 {
  font-size: 2.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.revenue-card p {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.revenue-breakdown {
  flex: 1;
}

.revenue-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.revenue-item strong {
  color: var(--text-primary);
}

/* ----------------------------------------
   16. FILTERS
   ---------------------------------------- */
.filters-bar {
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-color);
}

.filters-form {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.filters-form input,
.filters-form select {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  min-width: 200px;
}

.filters-form input:focus,
.filters-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(176, 112, 106, 0.1);
}

/* ----------------------------------------
   17. MODALS
   ---------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  overflow-y: auto;
  padding: var(--space-lg);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  max-height: 90svh; /* Use small viewport height for mobile browsers */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  bottom: 0;
}

/* ----------------------------------------
   18. MOBILE NAVIGATION
   ---------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: var(--space-sm) 0 calc(var(--space-sm) + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px var(--shadow-color);
}

.mobile-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  flex: 1;
  min-height: 56px;
  gap: 4px;
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.mobile-nav-item span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active svg {
  transform: translateY(-2px);
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 0 0 3px 3px;
}

.mobile-nav-badge {
  position: absolute;
  top: 4px;
  right: 20%;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  min-width: 16px;
  text-align: center;
}

/* ----------------------------------------
   19. RESPONSIVE DESIGN
   ---------------------------------------- */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  .sidebar {
    width: 260px;
  }
  
  .main-content {
    margin-left: 260px;
    max-width: calc(100% - 260px);
  }
  
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  
  .stats-row,
  .stats-collapsible {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .revenue-summary {
    flex-direction: column;
    align-items: stretch;
  }
  
  .revenue-card {
    min-width: auto;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 300px;
    z-index: 1001;
    transition: transform var(--transition-base);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar.mobile-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 300px;
    right: 0;
    bottom: 0;
    background: var(--backdrop);
    z-index: -1;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
    padding: var(--space-lg);
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  
  /* Mobile Menu Button */
  .mobile-menu-btn {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    color: var(--text-primary);
  }
  
  .mobile-menu-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
  }
  
  .page-header {
    padding-left: 60px;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  /* Stats */
  .stats-row,
  .stats-collapsible {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .stat-card {
    padding: var(--space-lg);
  }
  
  .stat-icon {
    width: 56px;
    height: 56px;
  }
  
  .stat-content h3 {
    font-size: 1.75rem;
  }
  
  /* Tables */
  .table-container {
    border-radius: var(--radius-md);
  }
  
  .data-table {
    font-size: 0.875rem;
  }
  
  .data-table th,
  .data-table td {
    padding: var(--space-sm) var(--space-md);
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .filters-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-form input,
  .filters-form select {
    width: 100%;
    min-width: auto;
  }
  
  /* Mobile Nav */
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Modal */
  .modal {
    padding: var(--space-sm);
  }
  
  .modal-content {
    max-height: calc(100vh - var(--space-lg));
    max-height: calc(100svh - var(--space-lg));
    border-radius: var(--radius-lg);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-lg);
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .login-card {
    padding: var(--space-xl);
  }
  
  .login-header h1 {
    font-size: 2rem;
  }
  
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }
  
  .page-header .btn {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .mobile-nav-item span {
    font-size: 0.625rem;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .revenue-item {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  .main-content {
    padding: var(--space-md);
  }
  
  .mobile-nav-item {
    padding: var(--space-xs);
  }
  
  .mobile-nav-item span {
    font-size: 0.5625rem;
  }
}

/* ----------------------------------------
   20. UTILITY & MISC
   ---------------------------------------- */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.days-left {
  font-size: 0.9375rem;
  font-weight: 600;
}

.days-urgent { color: var(--danger); }
.days-high { color: var(--warning); }
.days-medium { color: var(--info); }

/* Toggle Switch */
.status-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.status-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.status-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.status-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: var(--transition-fast);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.status-toggle input:checked + .status-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.status-toggle input:checked + .status-slider::before {
  transform: translateX(24px);
}

/* Info Box */
.info-box {
  background: var(--info-light);
  border-left: 4px solid var(--info);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

[data-theme="dark"] .info-box {
  background: rgba(107, 143, 168, 0.15);
}

.info-box h4 {
  color: var(--info);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.info-box ul li {
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: 0.875rem;
}

.info-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--info);
  font-weight: bold;
}

/* Service Types */
.service-types-table thead th {
  background: var(--primary-gradient);
  color: white;
  padding: var(--space-md) var(--space-lg);
}

.type-code {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: 'SF Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-badge {
  background: linear-gradient(135deg, #6B8E6B 0%, #5A7A5A 100%);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
}

.periodicity-badge {
  background: linear-gradient(135deg, #7A8E9E 0%, #6A7E8E 100%);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.75rem;
}

.count-badge {
  background: var(--primary-gradient);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
}

.revenue-badge {
  background: linear-gradient(135deg, #9A8A9A 0%, #8A7A8A 100%);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Empty State */
.empty-state-types {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state-types svg {
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

/* Auto-renew section styling */
.auto-renew-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.auto-renew-item {
  background: var(--surface);
  border: 2px solid var(--info);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .auto-renew-item {
  background: rgba(107, 143, 168, 0.05);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 100px;
  right: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  animation: toastSlideIn 0.3s ease;
}

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

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

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

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* Additional form section styling */
.form-section {
  margin-bottom: var(--space-xl);
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-suggestions div {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.autocomplete-suggestions div:hover {
  background: var(--bg-secondary);
}

/* Fixed modal footer */
.modal-footer-fixed {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-lg);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

/* Large modal variant */
.modal-large .modal-content {
  max-width: 1000px;
}

/* ============================================
   WIDGETS & COMPONENTS
   ============================================ */

/* Info Box Variants */
.info-box-gradient {
  background: linear-gradient(135deg, var(--info) 0%, #5A8AA8 100%);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.info-box-gradient svg {
  stroke: white;
}

/* Widget Cards */
.widget-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.widget-body {
  padding: var(--space-lg);
}

/* Widget Alert Variants */
.widget-alert {
  background: linear-gradient(135deg, #F0E6D0 0%, #E8D5A0 100%);
  border-left: 5px solid var(--warning);
}

[data-theme="dark"] .widget-alert {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
}

.widget-success {
  background: linear-gradient(135deg, #D4E5D4 0%, #A8D5A8 100%);
  border-left: 5px solid var(--success);
}

[data-theme="dark"] .widget-success {
  background: linear-gradient(135deg, rgba(107, 142, 107, 0.2) 0%, rgba(168, 213, 168, 0.1) 100%);
}

.widget-info {
  background: linear-gradient(135deg, #D8E6F0 0%, #A8C8E0 100%);
  border-left: 5px solid var(--info);
}

[data-theme="dark"] .widget-info {
  background: linear-gradient(135deg, rgba(107, 143, 168, 0.2) 0%, rgba(168, 200, 224, 0.1) 100%);
}

/* Equipment Cards */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.equipment-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
}

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

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

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

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.equipment-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.equipment-status-bar {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.equipment-expired {
  background: var(--danger-light);
  border-left: 4px solid var(--danger);
}

[data-theme="dark"] .equipment-expired {
  background: rgba(176, 112, 106, 0.15);
}

.equipment-warning {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
}

[data-theme="dark"] .equipment-warning {
  background: rgba(196, 162, 101, 0.15);
}

.equipment-active {
  background: var(--success-light);
  border-left: 4px solid var(--success);
}

[data-theme="dark"] .equipment-active {
  background: rgba(107, 142, 107, 0.15);
}

/* Auto Renew Widget */
.auto-renew-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow);
}

.auto-renew-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.auto-renew-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.auto-renew-content {
  flex: 1;
}

.auto-renew-title {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.auto-renew-item-custom {
  background: var(--surface);
  border: 2px solid var(--info);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
}

.auto-renew-countdown {
  background: linear-gradient(135deg, #C4A265 0%, #B8956A 100%);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
}

[data-theme="dark"] .auto-renew-countdown {
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.8) 0%, rgba(184, 149, 106, 0.8) 100%);
}

.auto-renew-countdown small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

.auto-renew-countdown .days {
  font-size: 1.5rem;
}

.auto-renew-footer {
  background: rgba(196, 162, 101, 0.1);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--info);
  margin-top: var(--space-md);
}

[data-theme="dark"] .auto-renew-footer {
  background: rgba(196, 162, 101, 0.2);
}

/* Settings Page */
.settings-container {
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow);
}

.settings-section .section-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.settings-section .section-header h2 {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1.25rem;
}

.settings-section .section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.logo-upload-section {
  margin-top: var(--space-lg);
}

.current-logo {
  margin-bottom: var(--space-lg);
}

.current-logo img,
.logo-preview img {
  max-width: 300px;
  max-height: 150px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--bg-primary);
}

.logo-preview {
  margin-top: var(--space-lg);
}

/* Form Validation States */
.form-input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(176, 112, 106, 0.15) !important;
}

.form-input-success {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(107, 142, 107, 0.15) !important;
}

.form-error-message {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tooltips */
[title] {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-sm);
  background: var(--dark);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

*:hover > .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  color: white;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Enhanced Modal Styles */
.modal-form-section {
  margin-bottom: var(--space-xl);
}

.modal-form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--primary), var(--secondary)) 1;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

/* ============================================
   FULLSCREEN MODALS
   ============================================ */

.modal-fullscreen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  overflow: hidden;
}

.modal-fullscreen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-fullscreen-content {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Fullscreen Modal Header */
.modal-fullscreen-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
}

.modal-fullscreen-header-content {
  flex: 1;
}

.modal-fullscreen-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-fullscreen-subtitle {
  margin: var(--space-xs) 0 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Exit Button */
.modal-exit-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-exit-btn:hover {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-exit-btn svg {
  width: 24px;
  height: 24px;
}

/* Fullscreen Modal Body */
.modal-fullscreen-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  background: var(--bg-primary);
  -webkit-overflow-scrolling: touch;
  /* Ensure proper scrolling in flex container */
  min-height: 0;
}

/* Fullscreen Modal Footer */
.modal-fullscreen-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* Custom Panel Classes for Contracts Generate Modal */
.modal-left-panel,
.modal-right-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

.modal-left-panel {
  flex: 1;
  padding-right: var(--space-lg);
}

.modal-right-panel {
  flex: 1;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border-color);
}

/* Template Gallery Scroll for Contract Templates */
.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  overflow-y: auto;
  max-height: 100%;
  padding: var(--space-sm);
}

/* Form Sections */
.modal-form-section {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.modal-form-section:last-child {
  margin-bottom: 0;
}

.modal-form-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg) 0;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-color);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-form-section-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Form Grid */
.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.modal-form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

/* Field Styling */
.field-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.field-required {
  color: var(--danger);
}

.field-required label::after {
  content: ' *';
  color: var(--danger);
  font-weight: 600;
}

/* Checkbox Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm) 0;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  user-select: none;
}

.field-hint,
.input-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive Fullscreen Modals */
@media (max-width: 768px) {
  .modal-fullscreen-content {
    border-radius: 0;
  }
  
  .modal-fullscreen-header {
    padding: var(--space-md);
  }
  
  .modal-fullscreen-header h2 {
    font-size: 1.125rem;
  }
  
  .modal-fullscreen-subtitle {
    font-size: 0.875rem;
  }
  
  .modal-fullscreen-body {
    padding: var(--space-md);
    /* Ensure scrolling works on mobile with dynamic viewport */
    max-height: calc(100svh - 120px);
  }
  
  /* Stack panels vertically on mobile for contracts-generate.php */
  .modal-left-panel,
  .modal-right-panel {
    padding: 0;
    height: auto;
    max-height: 50svh;
    border-left: none;
  }
  
  .modal-right-panel {
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
  }
  
  .modal-fullscreen-footer {
    padding: var(--space-md);
    flex-direction: column;
  }
  
  .modal-fullscreen-footer .btn {
    width: 100%;
  }
  
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-form-section {
    padding: var(--space-lg);
  }
  
  .modal-form-section-title {
    font-size: 1rem;
  }
}

/* Client Equipment Specific */
.equipment-filter-bar {
  background: var(--surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow);
}

.filters-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.filters-section h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.filters-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filters-group select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

/* Equipment urgency colors */
.equipment-urgency-expired {
  color: var(--danger);
  font-weight: 600;
}

.equipment-urgency-critical {
  color: var(--danger);
  font-weight: 600;
}

.equipment-urgency-warning {
  color: var(--warning);
  font-weight: 600;
}

/* Widget alert content */
.widget-alert h3 {
  margin: 0 0 var(--space-sm) 0;
  color: #6B5A2E;
  font-size: 1.125rem;
}

[data-theme="dark"] .widget-alert h3 {
  color: #E8D5A0;
}

.widget-alert p {
  margin: 0 0 var(--space-md) 0;
  color: #5A4A3A;
}

[data-theme="dark"] .widget-alert p {
  color: #E8D5A0;
}

/* Expiring table inside widget */
.expiring-widget-table {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  overflow-x: auto;
}

.expiring-widget-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.expiring-widget-table th {
  text-align: left;
  padding: var(--space-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 2px solid var(--warning);
}

.expiring-widget-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

/* Page header with subtitle */
.page-header-with-subtitle h1 {
  margin-bottom: var(--space-xs);
}

.page-header-with-subtitle p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9375rem;
}

/* Print styles */
@media print {
  .sidebar,
  .mobile-bottom-nav,
  .btn,
  .modal,
  .filters-bar {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
  
  .card,
  .dashboard-section,
  .table-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-container {
    margin-top: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pagination-info {
    color: var(--text-tertiary);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

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

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

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
}

/* ============================================
   CONTRACT TEMPLATE STYLES
   ============================================ */

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.template-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.template-card.template-inactive {
    opacity: 0.7;
    background: var(--bg-secondary);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.template-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.template-actions {
    display: flex;
    gap: 5px;
}

.template-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.template-variables {
    margin-bottom: 15px;
}

.template-variables strong {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.variables-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.variable-tag {
    background: var(--primary-gradient-soft);
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Template Gallery */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.template-gallery .template-card {
    cursor: pointer;
}

.template-preview {
    height: 150px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.template-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

/* Editor Sidebar */
.editor-sidebar {
    background: var(--surface);
}

.variable-category {
    margin-bottom: 20px;
}

.variable-category h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.variable-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.variable-list .variable-tag {
    cursor: pointer;
    transition: all 0.2s;
}

.variable-list .variable-tag:hover {
    background: var(--primary);
    color: white;
}

/* Contract Preview */
.contract-preview {
    max-width: 210mm;
    margin: 0 auto;
    background: white;
    padding: 20mm;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 297mm;
}

/* A4 Page Styles */
.a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
}

.a4-page h1 {
    font-size: 18pt;
    text-align: center;
    margin-bottom: 20pt;
}

.a4-page h2 {
    font-size: 14pt;
    margin-top: 20pt;
    margin-bottom: 10pt;
}

.a4-page h3 {
    font-size: 12pt;
    font-weight: bold;
    margin-top: 15pt;
    margin-bottom: 10pt;
}

/* TinyMCE Customization */
.tox-tinymce {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
}

.tox-editor-container {
    background: #F5F0E8 !important;
}

.tox-edit-area__iframe {
    background: #F5F0E8 !important;
}

.tox-edit-area__iframe body {
    background: white !important;
    max-width: 210mm !important;
    margin: 20px auto !important;
    padding: 20mm !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.1) !important;
    min-height: 297mm !important;
}

/* Dark mode overrides for hardcoded elements */
[data-theme="dark"] .alert-item.alert-warning {
    background: rgba(196, 162, 101, 0.15);
    border-color: #C4A265;
}

[data-theme="dark"] .alert-item.alert-warning span,
[data-theme="dark"] .alert-item.alert-equipment span {
    color: #F0E8DC;
}

[data-theme="dark"] .alert-item.alert-equipment {
    background: rgba(176, 112, 106, 0.15);
    border-color: #B0706A;
}

[data-theme="dark"] .expiring-badge.urgent {
    background: rgba(176, 112, 106, 0.2);
    color: #E8B8B0;
}

[data-theme="dark"] .expiring-badge.warning {
    background: rgba(196, 162, 101, 0.2);
    color: #E8D5A0;
}

[data-theme="dark"] .expiring-badge.normal {
    background: rgba(107, 142, 107, 0.2);
    color: #A8D5A8;
}

/* TinyMCE Dark Mode */
[data-theme="dark"] .tox-editor-container {
    background: #1A1F26 !important;
}

[data-theme="dark"] .tox-edit-area__iframe {
    background: #1A1F26 !important;
}


/* ============================================
   ADDITIONAL UTILITY CLASSES - DARK GOLD THEME
   ============================================ */

/* PV Generator Icons */
.pv-icon-accent {
  color: #B0706A;
}
.pv-icon-warning {
  color: #C4A265;
}

/* Contract Preview */
.contract-document {
  background: var(--surface-solid);
}

/* Media Dialog */
.media-dialog-overlay {
  background: var(--backdrop);
}

/* Confirm Dialog */
.confirm-dialog-overlay .btn-danger {
  background: var(--danger);
  color: #0C0E12;
}

/* Kanban Add Button */
.kanban-add-btn {
  color: #0C0E12 !important;
}

/* Filter Button Active */
.filter-btn.active {
  color: #0C0E12 !important;
}

/* Login Header */
.login-header h1 {
  background: linear-gradient(135deg, #C4A265 0%, #D4AF37 50%, #E8D5A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selection */
::selection {
  background: var(--primary);
  color: #0C0E12;
}

/* Sidebar Header */
.sidebar-header {
  background: var(--primary-gradient);
}

/* Nav Active */
.nav-item.active {
  box-shadow: 0 4px 12px rgba(196, 162, 101, 0.35);
}

/* User Avatar */
.user-avatar {
  background: var(--primary-gradient);
  color: #0C0E12;
  box-shadow: 0 4px 12px rgba(196, 162, 101, 0.3);
}


/* ============================================
   FISE & FACTURARE TASK SYNC STYLES
   ============================================ */

/* Todo source badges */
.todo-source-fise { border-left: 3px solid #6B8FA8 !important; }
.todo-source-factura { border-left: 3px solid #C4A265 !important; }

.todo-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.badge-source-fise {
    background: #D8E6F0;
    color: #2D4A5A;
}

.badge-source-factura {
    background: #F0E6D0;
    color: #6B5A2E;
}

[data-theme="dark"] .badge-source-fise {
    background: rgba(107, 143, 168, 0.2);
    color: #A8C8E0;
}

[data-theme="dark"] .badge-source-factura {
    background: rgba(196, 162, 101, 0.2);
    color: #E8D5A0;
}

/* Kanban source styling */
.kanban-source-fise {
    border-left: 4px solid #6B8FA8 !important;
}

.kanban-source-factura {
    border-left: 4px solid #C4A265 !important;
}

.kanban-card-task.kanban-source-fise .kanban-card-task-title,
.kanban-card-task.kanban-source-factura .kanban-card-task-title {
    font-weight: 700;
}

/* ============================================================
   Deep-link highlight & goto links
   ============================================================ */

.client-card-highlight {
    animation: clientHighlightPulse 2s ease-in-out 2;
    border: 2px solid #C4A265 !important;
    box-shadow: 0 0 20px rgba(196, 162, 101, 0.4), 0 4px 12px rgba(0,0,0,0.15) !important;
    transform: scale(1.01);
    transition: transform 0.3s ease;
    z-index: 10;
    position: relative;
}

@keyframes clientHighlightPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(196, 162, 101, 0.4), 0 4px 12px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 35px rgba(196, 162, 101, 0.7), 0 6px 18px rgba(0,0,0,0.2); }
}

.todo-goto-link,
.kanban-goto-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #C4A265;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(196, 162, 101, 0.08);
    border: 1px solid rgba(196, 162, 101, 0.25);
    transition: all 0.2s ease;
    margin-left: auto;
    white-space: nowrap;
}

.todo-goto-link:hover,
.kanban-goto-link:hover {
    background: rgba(196, 162, 101, 0.2);
    border-color: rgba(196, 162, 101, 0.5);
    color: #A08040;
}

[data-theme="dark"] .todo-goto-link,
[data-theme="dark"] .kanban-goto-link {
    color: #E8D5A0;
    background: rgba(196, 162, 101, 0.12);
    border-color: rgba(196, 162, 101, 0.3);
}

[data-theme="dark"] .todo-goto-link:hover,
[data-theme="dark"] .kanban-goto-link:hover {
    background: rgba(196, 162, 101, 0.25);
    border-color: rgba(196, 162, 101, 0.5);
    color: #F0E0B0;
}

/* Profile source badge & border */
.todo-source-profile { border-left: 3px solid #8B7FB8 !important; }
.kanban-source-profile { border-left: 4px solid #8B7FB8 !important; }

.kanban-card-task.kanban-source-profile .kanban-card-task-title {
    font-weight: 700;
}

.badge-source-profile {
    background: #E8E0F5;
    color: #4A3F6B;
}

[data-theme="dark"] .badge-source-profile {
    background: rgba(139, 127, 184, 0.2);
    color: #C4B8E8;
}

/* ═══════════════════════════════════════════════════════════════════════
   IPSSM Background Job Notifications
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Floating badge ─────────────────────────────────────────────────── */

.ipssm-jobs-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #C4A265 0%, #A68A4A 100%);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(166, 138, 74, 0.4);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: ipssmBadgeSlideIn 0.4s ease;
    user-select: none;
}

.ipssm-jobs-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(166, 138, 74, 0.5);
}

.ipssm-badge-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
}

.ipssm-badge-pulse {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: ipssmPulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
}

.ipssm-badge-label {
    font-size: 12px;
    opacity: 0.95;
}

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

@keyframes ipssmPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Dark theme badge */
[data-theme="dark"] .ipssm-jobs-badge {
    background: linear-gradient(135deg, #D4B275 0%, #B89A5A 100%);
    box-shadow: 0 4px 20px rgba(180, 154, 90, 0.35);
}

[data-theme="dark"] .ipssm-jobs-badge:hover {
    box-shadow: 0 6px 24px rgba(180, 154, 90, 0.45);
}

/* ── Notification modal ─────────────────────────────────────────────── */

.ipssm-notif-modal {
    max-width: 480px;
}

.ipssm-notif-modal .modal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 4px;
}

.ipssm-notif-modal .modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ipssm-notif-modal .modal-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 12px;
}

.ipssm-notif-filename {
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 10px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    border: 1px solid var(--border);
}

.ipssm-notif-modal .modal-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 8px;
}

.ipssm-notif-modal .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.ipssm-notif-modal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #C4A265 0%, #A68A4A 100%);
    color: #fff;
}

.ipssm-notif-modal .modal-footer .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ipssm-notif-modal .modal-footer .btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.ipssm-notif-modal .modal-footer .btn-secondary:hover {
    background: var(--surface-hover);
}

.ipssm-notif-modal .modal-footer .btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.ipssm-notif-modal .modal-footer .btn-outline:hover {
    background: var(--surface);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   IPSSM History List
   ═══════════════════════════════════════════════════════════════════════ */

.ipssm-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--surface);
    transition: all 0.2s ease;
}

.ipssm-history-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(166, 138, 74, 0.1);
}

.ipssm-history-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.ipssm-history-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipssm-history-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ipssm-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ipssm-history-actions .btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Dashboard Stat Cards — Clickable
   ═══════════════════════════════════════════════════════════════════════ */

.stat-card[data-link] {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card[data-link]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .stat-card[data-link]:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   IPSSM Jobs Modal
   ═══════════════════════════════════════════════════════════════════════ */

.ipssm-jobs-modal {
    max-width: 520px;
}

.ipssm-jobs-modal .modal-body {
    padding: 16px 20px;
}

.ipssm-job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--surface);
    transition: border-color 0.2s ease;
}

.ipssm-job-item:hover {
    border-color: var(--primary);
}

.ipssm-job-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.ipssm-job-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ipssm-job-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ipssm-job-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ipssm-job-actions .btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

