/* ═══════════════════════════════════════════════════════════
   PREMIER HOSPITALITY - DESIGN SYSTEM & STYLES
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Primary Colors */
  --navy: #0B1628;
  --navy-mid: #112040;
  --navy-light: #1a3a5c;
  --gold: #C8960C;
  --gold-light: #E8B420;
  --gold-pale: #FDF3D0;
  
  /* Neutrals */
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --slate: #4A5568;
  --muted: #718096;
  --border: #E2E8F0;
  
  /* Status Colors */
  --success: #0F766E;
  --success-bg: #F0FDF9;
  --danger: #C53030;
  --danger-bg: #FFF5F5;
  --warning: #B45309;
  --warning-bg: #FFFBEB;
  --info: #1D4ED8;
  --info-bg: #EFF6FF;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Spacing */
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-48: 48px;
  --spacing-64: 64px;
  --spacing-80: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 150, 12, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card.elevated {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Form Elements */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: var(--navy);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.1);
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  display: block;
  margin-bottom: 6px;
}

/* Tags & Badges */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tag-gold { background: var(--gold-pale); color: var(--gold); }
.tag-success { background: var(--success-bg); color: var(--success); }
.tag-danger { background: var(--danger-bg); color: var(--danger); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-navy { background: var(--navy); color: white; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pill-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-active::before { background: var(--success); }
.pill-active { background: var(--success-bg); color: var(--success); }

.pill-pending::before { background: var(--warning); }
.pill-pending { background: var(--warning-bg); color: var(--warning); }

.pill-inactive::before { background: #9CA3AF; }
.pill-inactive { background: #F3F4F6; color: #6B7280; }

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-24);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-24); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--spacing-24); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-20); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: var(--spacing-8); }
.gap-12 { gap: var(--spacing-12); }
.gap-16 { gap: var(--spacing-16); }
.gap-24 { gap: var(--spacing-24); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.p-8 { padding: var(--spacing-8); }
.p-12 { padding: var(--spacing-12); }
.p-16 { padding: var(--spacing-16); }
.p-20 { padding: var(--spacing-20); }
.p-24 { padding: var(--spacing-24); }
.p-32 { padding: var(--spacing-32); }

.m-0 { margin: 0; }
.mt-4 { margin-top: var(--spacing-4); }
.mt-8 { margin-top: var(--spacing-8); }
.mt-16 { margin-top: var(--spacing-16); }
.mt-24 { margin-top: var(--spacing-24); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-16 { margin-bottom: var(--spacing-16); }
.mb-24 { margin-bottom: var(--spacing-24); }

/* Text Utilities */
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-center { text-align: center; }

/* Sections */
.section {
  padding: var(--spacing-80) 0;
}

.section-light { background: white; }
.section-dark { background: var(--navy); color: white; }
.section-cream { background: var(--cream); }

.hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
}

.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-12) var(--spacing-16);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px var(--spacing-16);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

/* Progress Bars */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-20);
}

.modal {
  background: white;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Animations */
.anim-fade {
  animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Hover Effects */
.hover-lift {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
  padding: 6px 2px;
}

.nav-link:hover {
  color: var(--gold);
}

/* Sidebar */
.sidebar {
  background: white;
  border-right: 1px solid var(--border);
  height: 100vh;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-10);
  padding: 10px var(--spacing-16);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--muted);
}

.sidebar-item:hover {
  background: rgba(200, 150, 12, 0.08);
  color: var(--navy);
}

.sidebar-item.active {
  background: var(--gold-pale);
  color: var(--gold);
}

.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: var(--spacing-16) var(--spacing-16) 6px;
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: 14px;
  padding: var(--spacing-20);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
  margin: 4px 0;
}

.stat-card .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

/* Tabs */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border-radius: 10px;
  padding: 4px;
}

.tab {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--muted);
}

.tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.chip.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--gold);
}

/* Avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-10);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

/* Dividers */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--spacing-20) 0;
}

/* Utility Classes */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.bg-navy-gradient {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.ring-gold { border: 2px solid var(--gold); }

.shadow-sm { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.shadow-md { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  
  .section { padding: var(--spacing-48) 0; }
  
  .container {
    padding: 0 var(--spacing-16);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}