/* ==========================================================================
   Crowne Plaza Hotel Management System - Core Luxury Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary-navy: #0b1329;
  --secondary-navy: #141f36;
  --dark-surface: #0a0f1d;
  --accent-gold: #d4af37;
  --accent-gold-dark: #b89320;
  --accent-gold-light: #f4e8c1;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b89320 100%);
  --navy-gradient: linear-gradient(135deg, #0b1329 0%, #1a294d 100%);
  --success-green: #10b981;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --info-blue: #3b82f6;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 19, 41, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(11, 19, 41, 0.15);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-900);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Hero Background & Wrapper */
.hero-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.92) 0%, rgba(20, 31, 54, 0.95) 100%),
              url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* Luxury Cards */
.card-luxury {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-luxury-dark {
  background: rgba(20, 31, 54, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2.5rem;
}

/* Brand Logos & Titles */
.brand-logo-badge {
  width: 64px;
  height: 64px;
  background: var(--gold-gradient);
  color: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}

.card-luxury-dark .brand-title {
  color: white;
}

.brand-subtitle {
  color: var(--accent-gold-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-navy);
  font-weight: 600;
  border: none;
  border-radius: 50rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5c158 0%, #cfa62d 100%);
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-navy {
  background: var(--primary-navy);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 50rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-navy:hover {
  background: var(--secondary-navy);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-secondary-luxury {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--primary-navy);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.7rem 1.75rem;
  transition: all 0.25s ease;
}

.btn-secondary-luxury:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

.card-luxury-dark .btn-secondary-luxury {
  color: var(--accent-gold);
}
.card-luxury-dark .btn-secondary-luxury:hover {
  color: var(--primary-navy);
}

/* Forms */
.form-control-luxury {
  background-color: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control-luxury:focus {
  background-color: white;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  outline: none;
}

.form-label-custom {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-600);
  margin-bottom: 0.4rem;
}

.card-luxury-dark .form-label-custom {
  color: var(--slate-200);
}

/* Role Cards for Gateway Selection */
.portal-card-select {
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  background: white;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  height: 100%;
}

.portal-card-select:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(11, 19, 41, 0.12);
}

.portal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.portal-card-select:hover .portal-icon {
  transform: scale(1.1);
}

.portal-icon-reception {
  background: rgba(11, 19, 41, 0.08);
  color: var(--primary-navy);
}

.portal-icon-customer {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-dark);
}

/* Navbar */
.dashboard-navbar {
  background: var(--primary-navy);
  color: white;
  padding: 0.9rem 2rem;
  border-bottom: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.dashboard-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.dashboard-brand:hover {
  color: var(--accent-gold);
}

/* Badges */
.badge-luxury {
  padding: 0.35em 0.8em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-occupied { background-color: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-available { background-color: rgba(16, 185, 129, 0.15); color: #047857; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-cleaning { background-color: rgba(245, 158, 11, 0.15); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-maintenance { background-color: rgba(100, 116, 139, 0.15); color: #334155; border: 1px solid rgba(100, 116, 139, 0.3); }
.badge-gold { background-color: rgba(212, 175, 55, 0.2); color: var(--accent-gold-dark); border: 1px solid rgba(212, 175, 55, 0.4); }

/* Main Content Wrapper */
.main-content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate-600);
  margin: 0;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.2rem;
}

/* Room Cards Grid */
.room-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.room-card-img {
  height: 190px;
  object-fit: cover;
  width: 100%;
}

.room-card-body {
  padding: 1.25rem;
}

.room-card-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-navy);
}

/* Luxury Tables */
.table-luxury-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
}

.table-luxury {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table-luxury th {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid var(--slate-200);
}

.table-luxury td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9rem;
  vertical-align: middle;
}

.table-luxury tbody tr:hover {
  background-color: var(--slate-50);
}

/* Service Requests List */
.service-item {
  border-left: 4px solid var(--accent-gold);
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
}

/* Premium Animations & Glow Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Floating Ambient Orbs for Luxury Portals */
.orb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.orb-gold {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-gold) 0%, rgba(212, 175, 55, 0) 70%);
  top: -50px;
  right: -50px;
  animation: floatOrbGold 15s infinite alternate ease-in-out;
}

.orb-navy {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--info-blue) 0%, rgba(59, 130, 246, 0) 70%);
  bottom: -100px;
  left: -100px;
  animation: floatOrbNavy 20s infinite alternate ease-in-out;
}

@keyframes floatOrbGold {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, 40px) scale(1.15);
  }
}

@keyframes floatOrbNavy {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-40px, -60px) scale(1.1);
  }
}

/* Advanced Interactive Hover & Focus States */
.form-control-luxury {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control-luxury:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2) !important;
}

/* Luxury Card Hover Lift */
.card-luxury, .card-luxury-dark {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10;
}

.card-luxury:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 45px -10px rgba(11, 19, 41, 0.18), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.card-luxury-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.4);
}

/* Creative UI - Spotlight elements */
.card-spotlight-family {
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent !important;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--accent-gold) 0%, var(--warning-amber) 100%) border-box !important;
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.08), var(--shadow-sm) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-spotlight-family:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 25px 45px rgba(245, 158, 11, 0.15), 0 0 15px rgba(212, 175, 55, 0.25) !important;
}

.card-spotlight-family::before {
  content: 'FAMILY DEAL';
  position: absolute;
  top: 15px;
  right: -30px;
  background: linear-gradient(135deg, var(--accent-gold-dark) 0%, var(--warning-amber) 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  letter-spacing: 0.5px;
}

.badge-family-deal {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 0.3em 0.8em;
  border-radius: 50rem;
}

/* Twinkling particle snow background effect */
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--accent-gold) 0%, rgba(212, 175, 55, 0.2) 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  animation: driftParticles 12s infinite linear;
}

@keyframes driftParticles {
  0% {
    transform: translateY(105vh) translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Luxury Toast Notification System
   ========================================================================== */
.toast-container-luxury {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast-luxury {
  pointer-events: auto;
  background: rgba(11, 19, 41, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-gold);
  border-radius: 1rem;
  color: white;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.toast-luxury.toast-success { border-left: 5px solid var(--success-green); }
.toast-luxury.toast-danger { border-left: 5px solid var(--danger-red); }
.toast-luxury.toast-warning { border-left: 5px solid var(--warning-amber); }
.toast-luxury.toast-info { border-left: 5px solid var(--accent-gold); }

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-luxury-icon {
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.toast-success .toast-luxury-icon { color: var(--success-green); }
.toast-danger .toast-luxury-icon { color: var(--danger-red); }
.toast-warning .toast-luxury-icon { color: var(--warning-amber); }
.toast-info .toast-luxury-icon { color: var(--accent-gold); }

.toast-luxury-content {
  flex-grow: 1;
}

.toast-luxury-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  color: white;
}

.toast-luxury-message {
  font-size: 0.825rem;
  color: var(--slate-200);
  line-height: 1.35;
}

.toast-luxury-close {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toast-luxury-close:hover {
  color: white;
}

/* ==========================================================================
   Printable Invoice Modal & Print CSS
   ========================================================================== */
.invoice-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.invoice-header-brand {
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.invoice-table th {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--slate-200);
}

.invoice-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9rem;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #printableInvoiceArea, #printableInvoiceArea * {
    visibility: visible !important;
  }
  #printableInvoiceArea {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .modal-header, .modal-footer, .btn, .dashboard-navbar {
    display: none !important;
  }
}



