@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Professional SaaS Color Palette */
  --primary: #0F62FE; /* Crisp Corporate Blue */
  --primary-hover: #0353E9;
  --primary-light: #EDF5FF;
  
  --secondary: #059669; /* Refined Success Green */
  --warning: #D97706; /* Amber */
  --danger: #DC2626;  /* Red */
  
  --dark: #0F172A; /* Slate 900 for Sidebar */
  --darker: #0B1120;
  
  --bg-body: #F8FAFC; /* Slate 50 */
  --bg-card: #FFFFFF;
  
  --border: #E2E8F0; /* Slate 200 */
  
  --text-main: #334155; /* Slate 700 */
  --text-muted: #64748B; /* Slate 500 */
  --text-light: #F8FAFC;
  
  --sidebar-width: 260px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  overflow-x: hidden;
  font-size: 0.925rem;
  line-height: 1.5;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--dark);
  color: var(--text-light);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar .brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: #fff;
}
.sidebar .brand i {
  color: #38BDF8; /* Light blue accent for icon */
  margin-right: 8px;
}
.sidebar .nav-link {
  color: #94A3B8;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  border-left: 3px solid var(--primary);
}
.sidebar .nav-link i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}
.sidebar .nav-link.active i {
  opacity: 1;
  color: var(--primary);
}

/* Main Content & Topbar */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar {
  background-color: var(--bg-card);
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 999;
}
.content-area {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Inputs & Buttons */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: var(--bg-card) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.btn {
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 6px rgba(15, 98, 254, 0.2);
}
.btn-outline-secondary {
  color: var(--text-main);
  border-color: var(--border);
}
.btn-outline-secondary:hover {
  background-color: var(--bg-body);
  border-color: var(--text-muted);
}

/* Cards & Widgets */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  font-weight: 600;
  color: var(--dark);
}

/* KPI Cards */
.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
}
.kpi-icon.blue { background-color: var(--primary-light); color: var(--primary); }
.kpi-icon.green { background-color: #ECFDF5; color: var(--secondary); }
.kpi-icon.orange { background-color: #FFFBEB; color: var(--warning); }
.kpi-icon.red { background-color: #FEF2F2; color: var(--danger); }

.kpi-info h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  font-weight: 600;
}
.kpi-info h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

/* Table Design */
.table {
  margin-bottom: 0;
}
.table th {
  background-color: var(--bg-body);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}
.table tbody tr:hover {
  background-color: var(--bg-body);
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 9999px; /* Pill shape */
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}
.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-confirmed { background-color: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.status-confirmed::before { background-color: #047857; }
.status-pending { background-color: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
.status-pending::before { background-color: #B45309; }
.status-cancelled { background-color: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.status-cancelled::before { background-color: #B91C1C; }

/* Login Page */
.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  margin-left: 0;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

/* Specific elements from booking-new.html */
.summary-card {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: 96px;
}
.summary-card h4 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.summary-row .text-white-50 {
  color: var(--text-muted) !important;
}
.summary-row .text-white {
  color: var(--text-main) !important;
  font-weight: 600;
}
.summary-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding-top: 24px;
  margin-top: 24px;
  margin-bottom: 0;
}
.form-check {
  background-color: var(--bg-body);
  border-color: var(--border) !important;
  transition: all 0.2s;
}
.form-check:hover {
  border-color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .sidebar.show { transform: translateX(0); }
}
