/* ========================================
   My Hotel Manager — Clean Compact Theme
   ======================================== */

:root {
  --brand: #1e3a5f;
  --brand-light: #2d5a8e;
  --brand-subtle: #e8eef5;
  --accent: #0ea5e9;
  --surface: #ffffff;
  --bg: #f1f5f9;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---- Navbar ---- */
.navbar {
  padding: 0.4rem 0.75rem;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
}
.navbar-dark { background: var(--brand) !important; }
.navbar-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.navbar-brand i { font-size: 1rem; margin-right: 0.25rem; }
.navbar .nav-link {
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.15s;
}
.navbar .nav-link:hover { color: #fff !important; }
.navbar .nav-link i { margin-right: 0.2rem; }
.navbar .badge {
  font-size: 0.625rem;
  padding: 0.2em 0.5em;
  vertical-align: middle;
}

/* ---- Layout ---- */
.container-fluid { padding: 1rem 1.25rem; max-width: 1400px; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
}
.card-body { padding: 0.75rem; }

/* ---- Stat cards ---- */
.stat-card {
  border-left: 3px solid;
  border-radius: var(--radius);
  transition: transform 0.15s;
}
.stat-card:hover { transform: translateY(-1px); }
.stat-card.primary { border-left-color: var(--brand); }
.stat-card.success { border-left-color: #16a34a; }
.stat-card.warning { border-left-color: #d97706; }
.stat-card.danger  { border-left-color: #dc2626; }
.stat-card.info    { border-left-color: var(--accent); }

.stat-card .card-body { padding: 0.75rem 1rem; }
.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.stat-card .stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ---- Tables ---- */
.table { font-size: 0.8125rem; margin-bottom: 0; }
.table th {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom-width: 1px;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
}
.table td {
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
  border-color: var(--border);
}
.table-hover tbody tr:hover { background: var(--brand-subtle); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0,0,0,0.015); }
.table-dark th {
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  padding: 0.5rem 0.6rem;
}

/* ---- Badges ---- */
.badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25em 0.55em;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn { font-size: 0.8125rem; padding: 0.35rem 0.75rem; border-radius: var(--radius); font-weight: 500; }
.btn-sm { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }

/* ---- Forms ---- */
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-control, .form-select {
  font-size: 0.8125rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  border-color: var(--border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(14,165,233,0.15);
}

/* ---- Alerts ---- */
.alert {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

/* ---- Headings ---- */
h2, h3, h4, h5 { color: var(--text); font-weight: 700; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }

/* ---- Login ---- */
.login-container {
  max-width: 380px;
  margin: 60px auto;
}
.login-container h2 {
  font-size: 1.25rem;
  color: var(--brand);
}
.login-container .card {
  border: 1px solid var(--border);
}

/* ---- Key code display ---- */
.key-code-display {
  font-size: 2rem;
  letter-spacing: 0.4rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  background: var(--brand-subtle);
  color: var(--brand);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: inline-block;
}

/* ---- Progress / Occupancy ---- */
.occupancy-bar { height: 8px; border-radius: 4px; }
.progress { height: 8px; border-radius: 4px; }

/* ---- Dropdown ---- */
.dropdown-menu {
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.dropdown-item { padding: 0.35rem 0.75rem; }

/* ---- Pagination ---- */
.page-link { font-size: 0.8125rem; padding: 0.3rem 0.6rem; }

/* ---- Utility ---- */
.text-muted { color: var(--text-muted) !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.gap-2 { gap: 0.4rem !important; }

/* ---- Print ---- */
@media print {
  .no-print, .navbar { display: none !important; }
  body { background: #fff; }
}
