/*
 * AlphaHealth Theme - Centralized Styling System
 * User Management Module
 * Version: 2.0.0
 * Date: July 28, 2025
 * Last Updated: Theme palette implementation with new teal colors
 */

/* ===== CSS VARIABLES (THEME TOKENS) ===== */
:root {
  /* Brand Colors - Enterprise Professional */
  --color-brand-primary: #4285f4;  /* Google-style blue */
  --color-brand-dark: #1a73e8;     /* Darker blue */
  --color-brand-light: #e8f0fe;    /* Very light blue */
  /* Background & Surface Colors (Light Mode) */
  --color-bg-default: #f8f9fa;     /* Light gray background like JustDo */
  --color-surface: #ffffff;        /* Pure white surface */
  --color-border: #e5e7eb;         /* Subtle gray border */
  --color-hover-bg: #f3f4f6;       /* Light hover background */
  --color-focus-ring: #4285f4;     /* Blue focus ring */
  
  /* Sidebar Colors - Light Gray like JustDo */
  --color-sidebar-bg: #f8f9fa;     /* Light gray like JustDo sidebar */
  --color-sidebar-header: #f1f3f4; /* Slightly darker header */
  --color-sidebar-text: #374151;   /* Dark gray text */
  --color-sidebar-text-muted: #6b7280; /* Muted sidebar text */
  --color-sidebar-hover: #e5e7eb;  /* Light gray hover state */
  --color-sidebar-active: #dbeafe; /* Light blue active state */

  /* Text Colors (Light Mode) */
  --color-text-primary: #1a202c;      /* Dark gray for high contrast */
  --color-text-secondary: #4a5568;    /* Medium gray */
  --color-text-disabled: #a0aec0;     /* Light gray for disabled */
  --color-text-light: #ffffff;        /* Pure white */

  /* Semantic Colors (Light Mode) - Enterprise Friendly */
  --color-success: #48bb78;   /* Professional green */
  --color-warning: #ed8936;   /* Professional orange */
  --color-error: #f56565;     /* Professional red */
  --color-info: #4299e1;     /* Professional blue */
  --color-accent-teal: #38b2ac; /* Professional teal */
  --color-accent-cyan: #0bc5ea; /* Professional cyan */

  /* Legacy Compatibility - Mapped to new tokens */
  --ac-primary: var(--color-brand-primary);
  --ac-primary-dark: var(--color-brand-dark);
  --ac-primary-light: var(--color-brand-light);
  --ac-secondary: #2C9AB1;
  --ac-secondary-dark: #1C7F8E;
  --ac-secondary-light: #41BBD0;

  /* Gradient Definitions */
  --ac-gradient-primary: linear-gradient(135deg, var(--color-brand-primary) 0%, #64D8CB 100%);
  --ac-gradient-success: linear-gradient(135deg, var(--color-success) 0%, #A5D6A7 100%);
  --ac-gradient-warning: linear-gradient(135deg, var(--color-warning) 0%, #FFE082 100%);
  --ac-gradient-danger: linear-gradient(135deg, var(--color-error) 0%, #FFAB91 100%);
  --ac-gradient-info: linear-gradient(135deg, var(--color-info) 0%, #B3E5FC 100%);

  /* Legacy Semantic Colors - Mapped to new tokens */
  --ac-success: var(--color-success);
  --ac-warning: var(--color-warning);
  --ac-danger: var(--color-error);
  --ac-info: var(--color-info);
  --ac-light: #f8f9fa;
  --ac-dark: #343a40;

  /* Legacy Text Colors - Mapped to new tokens */
  --ac-text-primary: var(--color-text-primary);
  --ac-text-secondary: var(--color-text-secondary);
  --ac-text-muted: var(--color-text-disabled);
  --ac-text-light: var(--color-text-light);

  /* Legacy Background Colors - Mapped to new tokens */
  --ac-bg-primary: var(--color-surface);
  --ac-bg-secondary: var(--color-bg-default);
  --ac-bg-dark: #343a40;
  --ac-bg-glass: rgba(255, 255, 255, 0.95);
  --ac-bg-glass-dark: rgba(0, 0, 0, 0.1);

  /* Border & Shadow */
  --ac-border-radius: 12px;
  --ac-border-radius-lg: 20px;
  --ac-border-radius-sm: 8px;
  --ac-border-color: var(--color-border);
  --ac-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --ac-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --ac-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --ac-shadow-glass: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --ac-spacing-xs: 0.25rem;
  --ac-spacing-sm: 0.5rem;
  --ac-spacing: 1rem;
  --ac-spacing-lg: 1.5rem;
  --ac-spacing-xl: 2rem;
  --ac-spacing-xxl: 3rem;

  /* Typography */
  --ac-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ac-font-size-sm: 0.875rem;
  --ac-font-size: 1rem;
  --ac-font-size-lg: 1.125rem;
  --ac-font-weight-normal: 400;
  --ac-font-weight-medium: 500;
  --ac-font-weight-semibold: 600;
  --ac-font-weight-bold: 700;

  /* Layout */
  --ac-sidebar-width: 250px;
  --ac-sidebar-width-collapsed: 60px;
  --ac-header-height: 60px;

  /* Transitions */
  --ac-transition: all 0.3s ease;
  --ac-transition-fast: all 0.15s ease;
}

/* ===== DARK MODE THEME ===== */
[data-theme="dark"] {
  /* Background & Surface Colors (Dark Mode) */
  --color-bg-default: #121212;
  --color-surface: #1E1E1E;
  --color-border: #333333;
  --color-hover-bg: #1C1C1C;

  /* Text Colors (Dark Mode) */
  --color-text-primary: #EAEAEA;
  --color-text-secondary: #CFCFCF;
  --color-text-disabled: #777777;

  /* Semantic Colors (Dark Mode) */
  --color-success: #81C784;
  --color-warning: #FFB74D;
  --color-error: #E57373;
  --color-info: #64B5F6;

  /* Update legacy mappings for dark mode */
  --ac-bg-primary: var(--color-surface);
  --ac-bg-secondary: var(--color-bg-default);
  --ac-text-primary: var(--color-text-primary);
  --ac-text-secondary: var(--color-text-secondary);
  --ac-text-muted: var(--color-text-disabled);
  --ac-border-color: var(--color-border);
  --ac-success: var(--color-success);
  --ac-warning: var(--color-warning);
  --ac-danger: var(--color-error);
  --ac-info: var(--color-info);
}

/* ===== GLOBAL STYLES ===== */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: var(--ac-font-family);
  background-color: var(--ac-bg-secondary);
  color: var(--ac-text-primary);
  line-height: 1.6;
}

/* Force cache refresh test */
.cache-test {
  border: 3px solid red !important;
}

/* ===== LAYOUT COMPONENTS ===== */

/* Wrapper */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--ac-sidebar-width);
  background: var(--ac-gradient-primary);
  color: var(--ac-text-light);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--ac-transition);
  overflow-y: auto;
  box-shadow: var(--ac-shadow);
}

.sidebar-header {
  padding: var(--ac-spacing);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  color: var(--ac-text-light);
  text-decoration: none;
  font-weight: var(--ac-font-weight-bold);
  font-size: var(--ac-font-size-lg);
  display: flex;
  align-items: center;
}

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

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--ac-text-light);
  font-size: var(--ac-font-size-lg);
  padding: var(--ac-spacing-sm);
}

.sidebar-content {
  padding: var(--ac-spacing-sm) 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  margin-bottom: var(--ac-spacing-xs);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: var(--ac-spacing-sm) var(--ac-spacing);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--ac-transition);
  border-radius: 0;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ac-text-light);
}

.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ac-text-light);
}

.sidebar-nav .nav-link i {
  width: 20px;
  margin-right: var(--ac-spacing-sm);
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  margin-left: var(--ac-sidebar-width);
  min-height: 100vh;
  transition: var(--ac-transition);
  display: flex;
  flex-direction: column;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--ac-spacing-lg);
}

/* Header */
.main-header {
  background: var(--ac-bg-primary);
  border-bottom: 1px solid var(--ac-border-color);
  padding: var(--ac-spacing) var(--ac-spacing-lg);
  box-shadow: var(--ac-shadow-sm);
}

/* ===== COMPONENT STYLES ===== */

/* Cards */
.ac-card {
  background: var(--ac-bg-primary);
  border-radius: var(--ac-border-radius);
  box-shadow: var(--ac-shadow-sm);
  border: 1px solid var(--ac-border-color);
  overflow: hidden;
}

.ac-card-glass {
  background: var(--ac-bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--ac-shadow-glass);
}

.ac-card-header {
  background: var(--ac-bg-secondary);
  border-bottom: 1px solid var(--ac-border-color);
  padding: var(--ac-spacing);
  font-weight: var(--ac-font-weight-semibold);
}

.ac-card-body {
  padding: var(--ac-spacing-lg);
}

/* Buttons */
.ac-btn {
  display: inline-block;
  font-weight: var(--ac-font-weight-medium);
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: var(--ac-font-size);
  line-height: 1.5;
  border-radius: var(--ac-border-radius-sm);
  transition: var(--ac-transition);
  cursor: pointer;
  text-decoration: none;
}

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

.ac-btn-primary:hover {
  background: var(--ac-primary-dark);
  border-color: var(--ac-primary-dark);
  color: var(--ac-text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(7, 133, 134, 0.3);
}

.ac-btn-success {
  background: var(--ac-success);
  border-color: var(--ac-success);
  color: var(--ac-text-light);
}

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

.ac-btn-danger {
  background: var(--ac-danger);
  border-color: var(--ac-danger);
  color: var(--ac-text-light);
}

.ac-btn-outline-primary {
  background: transparent;
  border-color: var(--ac-primary);
  color: var(--ac-primary);
}

.ac-btn-outline-primary:hover {
  background: var(--ac-primary);
  color: var(--ac-text-light);
}

/* Forms */
.ac-form-floating {
  position: relative;
  margin-bottom: var(--ac-spacing);
}

.ac-form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: var(--ac-font-size);
  font-weight: var(--ac-font-weight-normal);
  line-height: 1.5;
  color: var(--ac-text-primary);
  background-color: var(--ac-bg-primary);
  background-clip: padding-box;
  border: 2px solid var(--ac-border-color);
  border-radius: var(--ac-border-radius);
  transition: var(--ac-transition);
}

.ac-form-control:focus {
  border-color: var(--ac-primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(8, 159, 160, 0.25);
  background: var(--ac-bg-primary);
}

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

/* Authentication Styles */
.ac-auth-container {
  background: var(--ac-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ac-font-family);
}

.ac-auth-card {
  background: var(--ac-bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--ac-border-radius-lg);
  padding: var(--ac-spacing-xxl);
  box-shadow: var(--ac-shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 400px;
}

.ac-auth-header {
  text-align: center;
  margin-bottom: var(--ac-spacing-xl);
}

.ac-auth-header h2 {
  color: var(--ac-text-primary);
  font-weight: var(--ac-font-weight-bold);
  margin-bottom: var(--ac-spacing-sm);
}

.ac-auth-header p {
  color: var(--ac-text-secondary);
  margin: 0;
}

.ac-brand-logo {
  text-align: center;
  margin-bottom: var(--ac-spacing-lg);
}

.ac-brand-logo i {
  font-size: 3rem;
  color: var(--ac-primary);
  margin-bottom: var(--ac-spacing-sm);
}

.ac-brand-name {
  font-size: var(--ac-font-size-lg);
  font-weight: var(--ac-font-weight-bold);
  color: var(--ac-text-primary);
  margin: 0;
}

/* Demo Credentials */
.ac-demo-credentials {
  background: rgba(7, 133, 134, 0.1);
  border: 1px solid rgba(7, 133, 134, 0.2);
  border-radius: var(--ac-border-radius);
  padding: var(--ac-spacing);
  margin-bottom: var(--ac-spacing-lg);
  text-align: center;
}

.ac-demo-credentials h6 {
  color: var(--ac-primary);
  font-weight: var(--ac-font-weight-semibold);
  margin-bottom: var(--ac-spacing-sm);
}

.ac-demo-credentials p {
  margin: 0.25rem 0;
  font-size: var(--ac-font-size-sm);
  color: var(--ac-text-secondary);
}

/* Dashboard Styles */
.ac-dashboard-container {
  padding: var(--ac-spacing-lg);
}

.ac-stat-card {
  background: var(--ac-bg-primary);
  border-radius: var(--ac-border-radius);
  box-shadow: var(--ac-shadow-sm);
  padding: var(--ac-spacing-lg);
  border-left: 4px solid transparent;
  transition: var(--ac-transition);
}

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

.ac-stat-card-primary {
  border-left-color: var(--ac-primary);
}

.ac-stat-card-success {
  border-left-color: var(--ac-success);
}

.ac-stat-card-info {
  border-left-color: var(--ac-info);
}

.ac-stat-card-warning {
  border-left-color: var(--ac-warning);
}

/* Tables */
.ac-table {
  width: 100%;
  margin-bottom: var(--ac-spacing);
  color: var(--ac-text-primary);
  border-collapse: collapse;
}

.ac-table th,
.ac-table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--ac-border-color);
}

.ac-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--ac-border-color);
  background: var(--ac-bg-secondary);
  font-weight: var(--ac-font-weight-semibold);
}

.ac-table-hover tbody tr:hover {
  background-color: var(--color-hover-bg);
}

.ac-table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.025);
}

/* Alerts */
.ac-alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: var(--ac-spacing);
  border: 1px solid transparent;
  border-radius: var(--ac-border-radius);
}

.ac-alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.ac-alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.ac-alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.ac-alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Badges */
.ac-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: var(--ac-font-weight-bold);
  line-height: 1;
  color: var(--ac-text-light);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--ac-border-radius-sm);
}

.ac-badge-primary {
  background-color: var(--ac-primary);
}

.ac-badge-success {
  background-color: var(--ac-success);
}

.ac-badge-warning {
  background-color: var(--ac-warning);
}

.ac-badge-danger {
  background-color: var(--ac-danger);
}

.ac-badge-info {
  background-color: var(--ac-info);
}

.ac-badge-secondary {
  background-color: var(--ac-secondary);
}

/* Loading States */
.ac-loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ac-spin 0.75s linear infinite;
}

@keyframes ac-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Sidebar */
@media (max-width: 991.98px) {
  .sidebar {
    margin-left: calc(-1 * var(--ac-sidebar-width));
  }
  
  .sidebar.show {
    margin-left: 0;
  }
  
  .content-wrapper {
    margin-left: 0;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .sidebar-overlay.show {
    display: block;
  }
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .ac-auth-card {
    padding: var(--ac-spacing-xl) var(--ac-spacing-lg);
    margin: var(--ac-spacing);
  }
  
  .ac-brand-logo i {
    font-size: 2.5rem;
  }
  
  .ac-brand-name {
    font-size: 1.3rem;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    padding: var(--ac-spacing);
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .main-header,
  .ac-btn,
  .no-print {
    display: none !important;
  }
  
  .content-wrapper {
    margin-left: 0 !important;
  }
  
  .ac-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* ===== UTILITY CLASSES ===== */

/* Spacing */
.ac-m-0 { margin: 0 !important; }
.ac-m-1 { margin: var(--ac-spacing-xs) !important; }
.ac-m-2 { margin: var(--ac-spacing-sm) !important; }
.ac-m-3 { margin: var(--ac-spacing) !important; }
.ac-m-4 { margin: var(--ac-spacing-lg) !important; }
.ac-m-5 { margin: var(--ac-spacing-xl) !important; }

.ac-p-0 { padding: 0 !important; }
.ac-p-1 { padding: var(--ac-spacing-xs) !important; }
.ac-p-2 { padding: var(--ac-spacing-sm) !important; }
.ac-p-3 { padding: var(--ac-spacing) !important; }
.ac-p-4 { padding: var(--ac-spacing-lg) !important; }
.ac-p-5 { padding: var(--ac-spacing-xl) !important; }

/* Text */
.ac-text-primary { color: var(--ac-primary) !important; }
.ac-text-success { color: var(--ac-success) !important; }
.ac-text-warning { color: var(--ac-warning) !important; }
.ac-text-danger { color: var(--ac-danger) !important; }
.ac-text-muted { color: var(--ac-text-muted) !important; }

/* Background */
.ac-bg-primary { background-color: var(--ac-primary) !important; }
.ac-bg-success { background-color: var(--ac-success) !important; }
.ac-bg-warning { background-color: var(--ac-warning) !important; }
.ac-bg-danger { background-color: var(--ac-danger) !important; }

/* Borders */
.ac-border { border: 1px solid var(--ac-border-color) !important; }
.ac-border-0 { border: 0 !important; }
.ac-rounded { border-radius: var(--ac-border-radius) !important; }
.ac-rounded-lg { border-radius: var(--ac-border-radius-lg) !important; }

/* Display */
.ac-d-none { display: none !important; }
.ac-d-block { display: block !important; }
.ac-d-flex { display: flex !important; }

/* Flexbox */
.ac-justify-content-center { justify-content: center !important; }
.ac-justify-content-between { justify-content: space-between !important; }
.ac-align-items-center { align-items: center !important; }

/* Text Alignment */
.ac-text-center { text-align: center !important; }
.ac-text-left { text-align: left !important; }
.ac-text-right { text-align: right !important; }

/* Font Weight */
.ac-fw-normal { font-weight: var(--ac-font-weight-normal) !important; }
.ac-fw-medium { font-weight: var(--ac-font-weight-medium) !important; }
.ac-fw-semibold { font-weight: var(--ac-font-weight-semibold) !important; }
.ac-fw-bold { font-weight: var(--ac-font-weight-bold) !important; }

/* ===== LEGACY BOOTSTRAP COMPATIBILITY ===== */

/* Ensure compatibility with existing Bootstrap classes */
.btn-login {
  width: 100%;
  padding: 12px;
  border-radius: var(--ac-border-radius);
  font-weight: var(--ac-font-weight-semibold);
  background: var(--ac-gradient-primary);
  border: none;
  color: var(--ac-text-light);
  transition: var(--ac-transition);
  margin-top: var(--ac-spacing);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(7, 133, 134, 0.3);
  color: var(--ac-text-light);
}

.form-floating .form-control:focus {
  border-color: var(--ac-primary);
  box-shadow: 0 0 0 0.2rem rgba(8, 159, 160, 0.25);
  background: var(--ac-bg-primary);
}

.form-check-input:checked {
  background-color: var(--ac-primary);
  border-color: var(--ac-primary);
}

/* Dashboard specific styles for backward compatibility */
.border-left-primary {
  border-left: 4px solid var(--ac-primary) !important;
}

.border-left-success {
  border-left: 4px solid var(--ac-success) !important;
}

.border-left-info {
  border-left: 4px solid var(--ac-info) !important;
}

.border-left-warning {
  border-left: 4px solid var(--ac-warning) !important;
}

.text-gray-800 {
  color: var(--ac-text-primary) !important;
}

.text-gray-300 {
  color: var(--ac-text-muted) !important;
}

/* ===== COMPONENT EXTENSIONS ===== */

/* Stat Icons - Reusable for all dashboard stats */
.ac-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.ac-stat-icon.bg-primary {
  background: var(--ac-primary);
}

.ac-stat-icon.bg-success {
  background: var(--ac-success);
}

.ac-stat-icon.bg-info {
  background: var(--ac-info);
}

.ac-stat-icon.bg-warning {
  background: var(--ac-warning);
}

/* Detail Groups - Reusable for all detail views */
.ac-detail-group {
  margin-bottom: var(--ac-spacing);
  padding-bottom: var(--ac-spacing);
  border-bottom: 1px solid var(--ac-border-color);
}

.ac-detail-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ac-detail-label {
  font-size: var(--ac-font-size-sm);
  font-weight: var(--ac-font-weight-semibold);
  color: var(--ac-text-secondary);
  display: block;
  margin-bottom: var(--ac-spacing-xs);
}

.ac-detail-value {
  font-size: var(--ac-font-size);
  color: var(--ac-text-primary);
}

/* Mini Stats - Reusable for all mini statistics displays */
.ac-stat-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ac-spacing-sm) 0;
}

.ac-stat-mini-number {
  font-size: 1.25rem;
  font-weight: var(--ac-font-weight-bold);
  color: var(--ac-primary);
}

.ac-stat-mini-label {
  font-size: var(--ac-font-size-sm);
  color: var(--ac-text-muted);
}

/* Feature Preview - Reusable for all "coming soon" or feature lists */
.ac-feature-preview {
  display: flex;
  align-items: center;
  margin-bottom: var(--ac-spacing-sm);
  padding: var(--ac-spacing-xs) 0;
}

.ac-feature-preview i {
  width: 20px;
  margin-right: var(--ac-spacing-sm);
}

.ac-feature-preview-list .ac-feature-preview {
  border-bottom: 1px solid var(--ac-border-color);
}

.ac-feature-preview-list .ac-feature-preview:last-child {
  border-bottom: none;
}

/* Help Items - Reusable for all help/guide sections */
.ac-help-list {
  list-style: none;
  padding: 0;
}

.ac-help-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--ac-spacing-sm);
  padding: var(--ac-spacing-xs) 0;
}

.ac-help-item i {
  width: 20px;
  margin-right: var(--ac-spacing-sm);
}

/* Button Groups - Reusable for all action button groups */
.ac-btn-group {
  display: flex;
  gap: var(--ac-spacing-xs);
}

.ac-btn-group .ac-btn {
  margin: 0;
}

/* Avatar - Reusable for all user/entity avatars */
.ac-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Alert Icon - Reusable for all alert/notification icons */
.ac-alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Empty State - Reusable for all empty state displays */
.ac-empty-state {
  text-align: center;
  padding: var(--ac-spacing-xxl) var(--ac-spacing);
}

.ac-empty-state-icon {
  font-size: 4rem;
  color: var(--ac-text-muted);
  margin-bottom: var(--ac-spacing);
}

.ac-empty-state h4,
.ac-empty-state h5,
.ac-empty-state h6 {
  color: var(--ac-text-primary);
  margin-bottom: var(--ac-spacing-sm);
}

.ac-empty-state p {
  color: var(--ac-text-muted);
  margin-bottom: var(--ac-spacing-lg);
}

/* Card Variants - Reusable card styles */
.ac-card-light {
  background: rgba(7, 133, 134, 0.05);
  border: 1px solid rgba(7, 133, 134, 0.1);
}

.ac-card-success {
  background: rgba(40, 167, 69, 0.05);
  border: 1px solid rgba(40, 167, 69, 0.1);
}

.ac-card-info {
  background: rgba(23, 162, 184, 0.05);
  border: 1px solid rgba(23, 162, 184, 0.1);
}

/* Page Header - Reusable for all page headers */
.ac-page-header {
  margin-bottom: var(--ac-spacing-xl);
}

.ac-page-title {
  font-size: 2rem;
  font-weight: var(--ac-font-weight-bold);
  color: var(--ac-text-primary);
  margin-bottom: var(--ac-spacing-xs);
}

.ac-page-subtitle {
  font-size: var(--ac-font-size-lg);
  color: var(--ac-text-secondary);
  margin-bottom: 0;
}

/* Form Actions - Reusable for all form action sections */
.ac-form-actions {
  display: flex;
  gap: var(--ac-spacing);
  margin-top: var(--ac-spacing-lg);
  padding-top: var(--ac-spacing-lg);
  border-top: 1px solid var(--ac-border-color);
}

/* Badge Outline - Reusable outline badge variant */
.ac-badge-outline {
  background: transparent;
  border: 1px solid var(--ac-border-color);
  color: var(--ac-text-primary);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .ac-btn-group {
    flex-direction: column;
    gap: var(--ac-spacing-xs);
  }
  
  .ac-stat-mini {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .ac-form-actions {
    flex-direction: column;
  }
}
