/* VIPMed Premium Admin Portal - Luxury Medical Concierge Design */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Premium Color Palette - Luxury Medical */
:root {
  /* Primary Colors - Trust & Premium */
  --navy-deep: #1a365d;
  --navy-medium: #2d4a7c;
  --navy-light: #3d5a8f;
  --navy-subtle: #e8edf5;

  /* Accent Colors - VIP & Luxury */
  --gold-primary: #c9a227;
  --gold-light: #d4b54a;
  --gold-dark: #9f7f1a;
  --gold-subtle: #faf7ed;
  --gold-glow: rgba(201, 162, 39, 0.15);

  /* Status Colors - Refined */
  --emerald: #047857;
  --emerald-light: #059669;
  --emerald-subtle: #d1fae5;
  --ruby: #991b1b;
  --ruby-subtle: #fee2e2;
  --amber: #d97706;
  --amber-subtle: #fef3c7;
  --sapphire: #1e40af;
  --sapphire-subtle: #dbeafe;

  /* Neutrals - Sophisticated */
  --white: #ffffff;
  --off-white: #fafafa;
  --pearl: #f5f5f5;
  --silver: #e5e7eb;
  --grey-light: #d1d5db;
  --grey: #9ca3af;
  --grey-medium: #6b7280;
  --charcoal: #374151;
  --charcoal-dark: #1f2937;
  --slate: #111827;

  /* Premium Shadows - Soft & Elevated */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 40px rgba(26, 54, 93, 0.12);
  --shadow-dramatic: 0 20px 60px rgba(26, 54, 93, 0.18);
  --shadow-gold: 0 4px 16px var(--gold-glow);

  /* Transitions - Smooth & Refined */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius - Soft & Modern */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-deep);
}

/* ============================================
   LOGIN PAGE - Premium Entry Experience
   ============================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 50%, var(--navy-light) 100%);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.login-box {
  background: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dramatic);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--gold-primary);
}

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

.login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
}

.login-logo p {
  color: var(--grey-medium);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ============================================
   DASHBOARD LAYOUT - Sophisticated Structure
   ============================================ */

.dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--off-white);
}

/* Sidebar - Luxury Navigation */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--slate) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(201, 162, 39, 0.1);
  box-shadow: var(--shadow-elevated);
  z-index: 1000;
}

.sidebar-header {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.sidebar-header p {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-lg) 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px var(--space-lg);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 14px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding-left: calc(var(--space-lg) + 4px);
}

.nav-item.active {
  background: linear-gradient(90deg, var(--gold-glow), transparent);
  color: var(--gold-light);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

.nav-item i {
  margin-right: var(--space-md);
  width: 20px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

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

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-deep);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-gold);
}

.user-details {
  flex: 1;
}

.user-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  margin-bottom: 2px;
}

.user-details p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* ============================================
   MAIN CONTENT - Premium Workspace
   ============================================ */

.main-content {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar - Elegant Header */
.topbar {
  background: var(--white);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--silver);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.topbar h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: -0.5px;
}

.topbar-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.content {
  flex: 1;
  padding: var(--space-xl);
}

/* ============================================
   STAT CARDS - Premium Metrics Display
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--navy-deep);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.stat-card:hover::before {
  opacity: 1;
}

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

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

.stat-card.danger {
  border-left-color: var(--ruby);
}

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

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--grey-medium);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.stat-change {
  font-size: 13px;
  color: var(--emerald);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.stat-change.negative {
  color: var(--ruby);
}

/* ============================================
   CARDS - Premium Content Containers
   ============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  border: 1px solid var(--silver);
  transition: var(--transition-smooth);
}

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

.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy-deep);
}

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

/* ============================================
   FORMS - Elegant Input Design
   ============================================ */

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--silver);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition-smooth);
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px var(--gold-glow);
  background: var(--white);
}

.form-control:disabled {
  background: var(--pearl);
  cursor: not-allowed;
  opacity: 0.6;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============================================
   BUTTONS - Premium Interactive Elements
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-medium));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-success:hover {
  background: var(--emerald);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--ruby), #b91c1c);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-danger:hover {
  background: var(--ruby);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--charcoal-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--gold-primary);
  color: var(--white);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none !important;
}

/* ============================================
   TABLES - Refined Data Display
   ============================================ */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background: linear-gradient(180deg, var(--pearl) 0%, var(--silver) 100%);
  padding: 16px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 2px solid var(--gold-primary);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.table th:first-child {
  border-top-left-radius: var(--radius-md);
}

.table th:last-child {
  border-top-right-radius: var(--radius-md);
}

.table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--silver);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition-fast);
}

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

.table tbody tr:nth-child(even) td {
  background: var(--off-white);
}

.table tbody tr:hover td {
  background: var(--gold-subtle);
  box-shadow: inset 0 0 0 1px var(--gold-primary);
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

/* ============================================
   BADGES - Elegant Status Indicators
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-inquiry {
  background: var(--silver);
  color: var(--charcoal);
}

.badge-documents-pending {
  background: var(--amber-subtle);
  color: var(--amber);
  border: 1px solid var(--amber);
}

.badge-confirmed {
  background: var(--sapphire-subtle);
  color: var(--sapphire);
  border: 1px solid var(--sapphire);
}

.badge-in-barcelona {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.badge-in-treatment {
  background: var(--gold-subtle);
  color: var(--gold-dark);
  border: 1px solid var(--gold-primary);
}

.badge-post-treatment {
  background: var(--navy-subtle);
  color: var(--navy-deep);
  border: 1px solid var(--navy-medium);
}

.badge-completed {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.badge-cancelled {
  background: var(--ruby-subtle);
  color: var(--ruby);
  border: 1px solid var(--ruby);
}

.badge-pending {
  background: var(--amber-subtle);
  color: var(--amber);
  border: 1px solid var(--amber);
}

.badge-paid {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.badge-scheduled {
  background: var(--sapphire-subtle);
  color: var(--sapphire);
  border: 1px solid var(--sapphire);
}

/* ============================================
   TABS - Sophisticated Navigation
   ============================================ */

.tabs {
  display: flex;
  border-bottom: 2px solid var(--silver);
  margin-bottom: var(--space-xl);
  gap: var(--space-xs);
}

.tab {
  padding: 14px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-medium);
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
}

.tab:hover {
  color: var(--navy-deep);
  background: var(--off-white);
}

.tab.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  background: var(--gold-subtle);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

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

/* ============================================
   SEARCH & FILTERS - Clean & Functional
   ============================================ */

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

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding-left: 42px;
  border: 2px solid var(--silver);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-medium);
  font-size: 16px;
}

/* ============================================
   LOADING STATES - Elegant Feedback
   ============================================ */

.loading {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--grey-medium);
}

.spinner {
  border: 3px solid var(--silver);
  border-top: 3px solid var(--gold-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-md);
}

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

/* ============================================
   ALERTS - Refined Notifications
   ============================================ */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-left: 3px solid;
  box-shadow: var(--shadow-subtle);
}

.alert-success {
  background: var(--emerald-subtle);
  color: var(--emerald);
  border-left-color: var(--emerald);
}

.alert-danger {
  background: var(--ruby-subtle);
  color: var(--ruby);
  border-left-color: var(--ruby);
}

.alert-info {
  background: var(--sapphire-subtle);
  color: var(--sapphire);
  border-left-color: var(--sapphire);
}

.alert-warning {
  background: var(--amber-subtle);
  color: var(--amber);
  border-left-color: var(--amber);
}

/* ============================================
   CHECKLIST - Clean Task Management
   ============================================ */

.checklist {
  list-style: none;
}

.checklist-item {
  padding: 14px;
  border-bottom: 1px solid var(--silver);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: var(--off-white);
}

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

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--gold-primary);
}

.checklist-item.completed {
  opacity: 0.5;
  text-decoration: line-through;
}

.checklist-category {
  font-weight: 700;
  color: var(--navy-deep);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   TIMELINE - Elegant Progress Display
   ============================================ */

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-primary), var(--silver));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold-primary);
}

.timeline-date {
  font-size: 12px;
  color: var(--grey-medium);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content {
  background: var(--off-white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--gold-primary);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.timeline-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--navy-deep);
  font-family: 'Inter', sans-serif;
}

.timeline-content p {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ============================================
   MODAL SYSTEM - Premium Dialog Windows
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 54, 93, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-lg);
}

.modal-overlay.active {
  opacity: 1;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dramatic);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold-primary);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--off-white), var(--white));
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--grey-medium);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  font-size: 24px;
}

.modal-close:hover {
  background: var(--silver);
  color: var(--navy-deep);
}

.modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--silver);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  background: var(--off-white);
}

/* ============================================
   MOBILE RESPONSIVE - Elegant Adaptation
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .topbar h1 {
    font-size: 24px;
  }

  .filters {
    flex-direction: column;
  }

  .search-box {
    min-width: 100%;
  }

  .table-container {
    overflow-x: scroll;
  }

  .modal {
    max-width: 100%;
    margin: var(--space-md);
  }

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

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

/* ============================================
   UTILITY CLASSES - Convenient Helpers
   ============================================ */

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.text-muted { color: var(--grey-medium); }
.text-small { font-size: 13px; }
.text-large { font-size: 16px; }
.text-uppercase { text-transform: uppercase; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.border-none { border: none; }
.border-radius { border-radius: var(--radius-md); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.cursor-pointer { cursor: pointer; }

/* ============================================
   SCROLLBAR STYLING - Premium Details
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--grey-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--pearl);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ============================================
   SELECTION STYLING - Brand Consistent
   ============================================ */

::selection {
  background: var(--gold-glow);
  color: var(--navy-deep);
}

::-moz-selection {
  background: var(--gold-glow);
  color: var(--navy-deep);
}
