/* Prestige Dark/Gold Theme - Luxury Enterprise Command Center */

:root {
  /* Dark/Gold Color Palette */
  --prestige-dark-bg: #0a0a0a;
  --prestige-dark-surface: #1a1a1a;
  --prestige-dark-surface-elevated: #242424;
  --prestige-dark-border: #2d2d2d;
  --prestige-dark-border-light: #3a3a3a;
  
  /* Gold Accents */
  --prestige-gold-primary: #d4af37;
  --prestige-gold-light: #f4d03f;
  --prestige-gold-dark: #b8941f;
  --prestige-gold-glow: rgba(212, 175, 55, 0.3);
  
  /* Text Colors */
  --prestige-text-primary: #ffffff;
  --prestige-text-secondary: #b8b8b8;
  --prestige-text-muted: #6b6b6b;
  --prestige-text-gold: var(--prestige-gold-primary);
  
  /* Status Colors - Dark Theme */
  --prestige-success: #4ade80;
  --prestige-success-bg: rgba(74, 222, 128, 0.1);
  --prestige-warning: #fbbf24;
  --prestige-warning-bg: rgba(251, 191, 36, 0.1);
  --prestige-danger: #f87171;
  --prestige-danger-bg: rgba(248, 113, 113, 0.1);
  --prestige-info: #60a5fa;
  --prestige-info-bg: rgba(96, 165, 250, 0.1);
  
  /* Shadows & Glows */
  --shadow-dark-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-dark-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-dark-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 20px var(--prestige-gold-glow);
  --glow-gold-strong: 0 0 30px var(--prestige-gold-glow), 0 0 60px var(--prestige-gold-glow);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Base */
body.prestige-dark {
  background-color: var(--prestige-dark-bg);
  color: var(--prestige-text-primary);
}

/* Cards - Dark Theme */
.prestige-card-dark {
  background: var(--prestige-dark-surface);
  border: 1px solid var(--prestige-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-dark-sm);
  transition: all var(--transition-base);
}

.prestige-card-dark:hover {
  border-color: var(--prestige-dark-border-light);
  box-shadow: var(--shadow-dark-md);
  transform: translateY(-2px);
}

.prestige-card-dark-elevated {
  background: var(--prestige-dark-surface-elevated);
  border: 1px solid var(--prestige-gold-dark);
  box-shadow: var(--shadow-dark-md), var(--glow-gold);
}

.prestige-card-dark-elevated:hover {
  border-color: var(--prestige-gold-primary);
  box-shadow: var(--shadow-dark-lg), var(--glow-gold-strong);
}

/* Card Headers */
.prestige-card-header-dark {
  border-bottom: 1px solid var(--prestige-dark-border);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.prestige-card-title-dark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--prestige-text-gold);
  margin: 0;
  text-shadow: 0 0 10px var(--prestige-gold-glow);
}

.prestige-card-subtitle-dark {
  font-size: 0.875rem;
  color: var(--prestige-text-secondary);
  margin-top: var(--space-xs);
}

/* Buttons - Dark/Gold Theme */
.prestige-btn-dark-primary {
  background: linear-gradient(135deg, var(--prestige-gold-dark), var(--prestige-gold-primary));
  color: var(--prestige-dark-bg);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-dark-sm), var(--glow-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prestige-btn-dark-primary:hover {
  background: linear-gradient(135deg, var(--prestige-gold-primary), var(--prestige-gold-light));
  box-shadow: var(--shadow-dark-md), var(--glow-gold-strong);
  transform: translateY(-2px);
}

.prestige-btn-dark-secondary {
  background: var(--prestige-dark-surface-elevated);
  color: var(--prestige-text-primary);
  border: 1px solid var(--prestige-dark-border-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.prestige-btn-dark-secondary:hover {
  border-color: var(--prestige-gold-primary);
  background: var(--prestige-dark-surface);
  color: var(--prestige-gold-primary);
}

.prestige-btn-dark-ghost {
  background: transparent;
  color: var(--prestige-text-secondary);
  border: 1px solid var(--prestige-dark-border);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.prestige-btn-dark-ghost:hover {
  border-color: var(--prestige-gold-primary);
  color: var(--prestige-gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Input Fields - Dark Theme */
.prestige-input-dark {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--prestige-dark-surface-elevated);
  border: 1px solid var(--prestige-dark-border);
  border-radius: var(--radius-md);
  color: var(--prestige-text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
}

.prestige-input-dark:focus {
  outline: none;
  border-color: var(--prestige-gold-primary);
  box-shadow: 0 0 0 3px var(--prestige-gold-glow);
}

.prestige-input-dark::placeholder {
  color: var(--prestige-text-muted);
}

/* Tables - Dark Theme */
.prestige-table-dark {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.prestige-table-dark thead {
  background: var(--prestige-dark-surface-elevated);
}

.prestige-table-dark th {
  padding: var(--space-md);
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prestige-text-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--prestige-gold-dark);
}

.prestige-table-dark td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--prestige-dark-border);
  color: var(--prestige-text-primary);
}

.prestige-table-dark tbody tr {
  transition: background-color var(--transition-fast);
}

.prestige-table-dark tbody tr:hover {
  background-color: var(--prestige-dark-surface-elevated);
}

/* Badges - Dark Theme */
.prestige-badge-dark {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
}

.prestige-badge-dark-success {
  background: var(--prestige-success-bg);
  color: var(--prestige-success);
  border: 1px solid var(--prestige-success);
}

.prestige-badge-dark-warning {
  background: var(--prestige-warning-bg);
  color: var(--prestige-warning);
  border: 1px solid var(--prestige-warning);
}

.prestige-badge-dark-danger {
  background: var(--prestige-danger-bg);
  color: var(--prestige-danger);
  border: 1px solid var(--prestige-danger);
}

.prestige-badge-dark-info {
  background: var(--prestige-info-bg);
  color: var(--prestige-info);
  border: 1px solid var(--prestige-info);
}

.prestige-badge-dark-gold {
  background: var(--prestige-gold-glow);
  color: var(--prestige-gold-light);
  border: 1px solid var(--prestige-gold-primary);
  box-shadow: var(--glow-gold);
}

/* Dividers */
.prestige-divider-dark {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--prestige-dark-border), transparent);
  margin: var(--space-lg) 0;
}

.prestige-divider-dark-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--prestige-gold-primary), transparent);
  margin: var(--space-lg) 0;
  box-shadow: var(--glow-gold);
}

/* Stats Display */
.prestige-stat-dark {
  text-align: center;
  padding: var(--space-lg);
}

.prestige-stat-value-dark {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--prestige-gold-light), var(--prestige-gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: var(--space-sm) 0;
  text-shadow: var(--glow-gold);
}

.prestige-stat-label-dark {
  font-size: 0.875rem;
  color: var(--prestige-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid System */
.prestige-grid-dark {
  display: grid;
  gap: var(--space-lg);
}

.prestige-grid-dark-2 {
  grid-template-columns: repeat(2, 1fr);
}

.prestige-grid-dark-3 {
  grid-template-columns: repeat(3, 1fr);
}

.prestige-grid-dark-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .prestige-grid-dark-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .prestige-grid-dark-2,
  .prestige-grid-dark-3,
  .prestige-grid-dark-4 {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.prestige-text-dark-primary { color: var(--prestige-text-primary); }
.prestige-text-dark-secondary { color: var(--prestige-text-secondary); }
.prestige-text-dark-muted { color: var(--prestige-text-muted); }
.prestige-text-dark-gold { color: var(--prestige-text-gold); }

/* Scrollbar - Dark Theme */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--prestige-dark-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--prestige-dark-border-light);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--prestige-gold-dark);
}

/* Loading Spinner */
.prestige-spinner-dark {
  border: 3px solid var(--prestige-dark-border);
  border-top: 3px solid var(--prestige-gold-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltip */
.prestige-tooltip-dark {
  position: relative;
  display: inline-block;
}

.prestige-tooltip-dark .prestige-tooltip-text {
  visibility: hidden;
  background-color: var(--prestige-dark-surface-elevated);
  color: var(--prestige-text-primary);
  border: 1px solid var(--prestige-gold-primary);
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.875rem;
  box-shadow: var(--shadow-dark-md), var(--glow-gold);
}

.prestige-tooltip-dark:hover .prestige-tooltip-text {
  visibility: visible;
}

/* Alert/Notification */
.prestige-alert-dark {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border-left: 4px solid;
}

.prestige-alert-dark-success {
  background: var(--prestige-success-bg);
  border-color: var(--prestige-success);
  color: var(--prestige-success);
}

.prestige-alert-dark-warning {
  background: var(--prestige-warning-bg);
  border-color: var(--prestige-warning);
  color: var(--prestige-warning);
}

.prestige-alert-dark-danger {
  background: var(--prestige-danger-bg);
  border-color: var(--prestige-danger);
  color: var(--prestige-danger);
}

.prestige-alert-dark-info {
  background: var(--prestige-info-bg);
  border-color: var(--prestige-info);
  color: var(--prestige-info);
}

/* Modal */
.prestige-modal-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.prestige-modal-content-dark {
  background: var(--prestige-dark-surface);
  border: 1px solid var(--prestige-gold-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-dark-lg), var(--glow-gold-strong);
}

/* Progress Bar */
.prestige-progress-dark {
  width: 100%;
  height: 8px;
  background: var(--prestige-dark-surface-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.prestige-progress-bar-dark {
  height: 100%;
  background: linear-gradient(90deg, var(--prestige-gold-dark), var(--prestige-gold-primary));
  border-radius: var(--radius-sm);
  transition: width var(--transition-slow);
  box-shadow: var(--glow-gold);
}

/* Icon Buttons */
.prestige-icon-btn-dark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--prestige-dark-surface-elevated);
  border: 1px solid var(--prestige-dark-border);
  color: var(--prestige-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.prestige-icon-btn-dark:hover {
  border-color: var(--prestige-gold-primary);
  color: var(--prestige-gold-primary);
  background: var(--prestige-dark-surface);
  box-shadow: var(--glow-gold);
}
