/* ===== Kasir Hotel — tema hotel: navy, emas, gading ===== */
:root {
  --navy: #0e2238;
  --navy-2: #17324f;
  --navy-3: #214468;
  --gold: #c8a45d;
  --gold-2: #e6cd94;
  --ivory: #f6f3ec;
  --paper: #ffffff;
  --ink: #1d2733;
  --muted: #6b7686;
  --line: #e8e2d4;
  --success: #2f8f6b;
  --warning: #c98a1b;
  --danger: #c0443f;
  --info: #3a7ca5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 34, 56, .05), 0 8px 24px rgba(14, 34, 56, .06);

  --bs-body-bg: var(--ivory);
  --bs-body-color: var(--ink);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-border-color: var(--line);
  --bs-link-color: var(--navy-3);
  --bs-link-hover-color: var(--gold);
}

html { font-size: 15px; }
@media (min-width: 992px) { html { font-size: 16px; } }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3, .h4, .brand-name, .receipt-hotel {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  letter-spacing: .01em;
}
h1.h4, .page-head h1 { font-weight: 600; color: var(--navy); }
.h6, h2.h6 {
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: .9rem;
}

a { text-decoration: none; }

/* ===== Layout aplikasi ===== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px;
  flex: 0 0 264px;
  background: linear-gradient(180deg, var(--navy) 0%, #0a1a2b 100%);
  color: #cfd8e3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.4rem 1rem 1rem;
  z-index: 1040;
}

.brand { display: flex; align-items: center; gap: .75rem; padding: .25rem .6rem 1.3rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy); font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(200, 164, 93, .35);
}
.brand-name { color: #fff; font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.brand-sub { color: var(--gold-2); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }

.nav-scroll { flex: 1; overflow-y: auto; margin: 0 -.25rem; padding: 0 .25rem; }
.nav-section {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: #7f90a5; padding: 1rem .75rem .4rem;
}
.sidebar .nav-link {
  display: flex; align-items: center; gap: .7rem;
  color: #cfd8e3; padding: .6rem .75rem; border-radius: 10px;
  font-size: .93rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.sidebar .nav-link i { font-size: 1.05rem; color: #8ea1b8; transition: color .15s; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar .nav-link:hover i { color: var(--gold-2); }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(200, 164, 93, .22), rgba(200, 164, 93, .05));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}
.sidebar .nav-link.active i { color: var(--gold); }

.user-card {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px; padding: .65rem .75rem; margin-top: .75rem;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 700;
}
.user-meta { min-width: 0; flex: 1; }
.user-name { color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: #8ea1b8; font-size: .72rem; }
.user-card .btn-logout { color: #8ea1b8; background: transparent; border: 0; font-size: 1.1rem; padding: .25rem .4rem; }
.user-card .btn-logout:hover { color: var(--gold-2); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.75rem;
  background: rgba(246, 243, 236, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.topbar .hotel-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.topbar .today { color: var(--muted); font-size: .85rem; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.5rem; color: var(--navy); padding: 0 .5rem 0 0; }

.content { padding: 1.75rem; max-width: 1280px; width: 100%; margin: 0 auto; }

.scrim { display: none; }

@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; }
  body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.sidebar-open .scrim { display: block; position: fixed; inset: 0; background: rgba(8, 18, 30, .5); z-index: 1035; }
  .menu-btn { display: inline-block; }
  .topbar { padding: .75rem 1rem; }
  .content { padding: 1.1rem; }
}

/* ===== Komponen ===== */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.page-head h1 { margin: 0; font-size: 1.7rem; }
.eyebrow { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .2rem; }
.card .eyebrow { color: var(--muted); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.card-body { padding: 1.35rem; }

.stat-card {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 46px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(200, 164, 93, .16); color: #9a7a35;
}
.stat-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.55rem; font-weight: 600; color: var(--navy); line-height: 1.15; font-family: 'Playfair Display', Georgia, serif; }
.stat-warn { border-color: rgba(192, 68, 63, .35); }
.stat-warn .stat-icon { background: rgba(192, 68, 63, .12); color: var(--danger); }
.stat-warn .stat-value { color: var(--danger); }

.hero-banner {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 1.8rem 2rem; color: #fff; margin-bottom: 1.5rem;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(200, 164, 93, .35), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  box-shadow: var(--shadow);
}
.hero-banner h1 { color: #fff; font-size: 1.9rem; margin: 0 0 .25rem; }
.hero-banner .sub { color: var(--gold-2); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.hero-banner p { color: #c5d2e0; margin: .4rem 0 0; }

.quick-link {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; height: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy); font-weight: 600; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.quick-link i { font-size: 1.4rem; color: var(--gold); }
.quick-link:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--navy); }

.room-tile { border-radius: 14px; padding: 1rem; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.room-tile .n { font-size: 1.8rem; font-weight: 600; font-family: 'Playfair Display', Georgia, serif; color: var(--navy); }
.room-tile.s-Available { border-top: 4px solid var(--success); }
.room-tile.s-Occupied { border-top: 4px solid var(--navy-3); }
.room-tile.s-Dirty { border-top: 4px solid var(--warning); }
.room-tile.s-Cleaning { border-top: 4px solid var(--info); }
.room-tile.s-OutOfOrder { border-top: 4px solid var(--danger); }

/* Tombol */
.btn { border-radius: 10px; font-weight: 500; padding: .5rem 1rem; }
.btn-sm { padding: .28rem .65rem; border-radius: 8px; }
.btn-primary {
  --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy-3); --bs-btn-hover-border-color: var(--navy-3);
  --bs-btn-active-bg: var(--navy-3); --bs-btn-active-border-color: var(--navy-3);
  --bs-btn-disabled-bg: var(--navy); --bs-btn-disabled-border-color: var(--navy);
}
.btn-outline-primary {
  --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy);
}
.btn-success { --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success); --bs-btn-hover-bg: #277a5b; --bs-btn-hover-border-color: #277a5b; }
.btn-warning { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: var(--navy); --bs-btn-hover-bg: var(--gold-2); --bs-btn-hover-border-color: var(--gold-2); --bs-btn-hover-color: var(--navy); }
.btn-outline-warning { --bs-btn-color: #9a7a35; --bs-btn-border-color: var(--gold); --bs-btn-hover-bg: var(--gold); --bs-btn-hover-border-color: var(--gold); --bs-btn-hover-color: var(--navy); }
.btn:focus, .btn:active:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(200, 164, 93, .35);
  border-color: var(--gold);
}

/* Form */
.form-control, .form-select { border-radius: 10px; border-color: #ddd6c5; padding: .55rem .8rem; background-color: #fffdf9; }
.form-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }

/* Tabel */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(200, 164, 93, .07); margin-bottom: 0; }
.table > thead th {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .7rem .6rem; border-bottom-color: #f0ebdf; }
.table-hover > tbody > tr:hover > * { background: rgba(200, 164, 93, .07); }

/* Badge lembut */
.badge { font-weight: 600; letter-spacing: .02em; border-radius: 999px; padding: .38em .75em; }
.badge-soft-success { background: rgba(47, 143, 107, .14); color: #1f6e50; }
.badge-soft-primary { background: rgba(33, 68, 104, .14); color: var(--navy-3); }
.badge-soft-warning { background: rgba(201, 138, 27, .16); color: #96650c; }
.badge-soft-danger { background: rgba(192, 68, 63, .14); color: #a02f2b; }
.badge-soft-info { background: rgba(58, 124, 165, .15); color: #2a6285; }
.badge-soft-secondary { background: rgba(107, 118, 134, .15); color: #4d596a; }

.alert { border-radius: 12px; border: 0; }
.alert-success { background: rgba(47, 143, 107, .13); color: #1d654a; }
.alert-danger { background: rgba(192, 68, 63, .12); color: #912b27; }
.alert-warning { background: rgba(201, 138, 27, .15); color: #7c5309; }
.alert-info { background: rgba(58, 124, 165, .13); color: #24566f; }

.outlet-pills .nav-link { color: var(--navy); border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-right: .4rem; }
.outlet-pills .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== Halaman login ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 3rem;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(200, 164, 93, .4), transparent 60%),
    radial-gradient(500px 500px at 0% 100%, rgba(58, 124, 165, .35), transparent 60%),
    linear-gradient(160deg, #0a1a2b 0%, var(--navy-2) 100%);
}
.auth-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px);
}
.auth-hero .brand-mark { width: 54px; height: 54px; font-size: 1.6rem; }
.auth-hero h1 { font-size: 2.6rem; line-height: 1.15; color: #fff; max-width: 14ch; }
.auth-hero h1 span { color: var(--gold-2); }
.auth-hero p { color: #c5d2e0; max-width: 40ch; }
.auth-hero .stars { color: var(--gold); letter-spacing: .25em; }
.auth-panel { display: grid; place-items: center; padding: 2rem; background: var(--ivory); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 1.9rem; color: var(--navy); }
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { padding: 2rem 1.5rem; min-height: 220px; }
  .auth-hero h1 { font-size: 1.8rem; }
  .auth-hero p, .auth-hero .stars { display: none; }
}

/* ===== Invoice / struk ===== */
.print-body { background: #e9e5da; }
.print-toolbar { max-width: 820px; margin: 1rem auto; display: flex; gap: .5rem; padding: 0 1rem; }
.receipt { background: #fff; color: #111; margin: 0 auto 2rem; box-shadow: var(--shadow); font-size: .9rem; }
.receipt.a4 { max-width: 820px; padding: 2.5rem 3rem; border-radius: 6px; }
.receipt.thermal { width: 80mm; padding: 6mm 5mm; font-size: 11px; line-height: 1.35; font-family: 'Courier New', monospace; }
.receipt-head { text-align: center; margin-bottom: .8rem; }
.receipt-hotel { font-size: 1.35rem; font-weight: 700; }
.thermal .receipt-hotel { font-size: 15px; }
.receipt-title { text-align: center; font-weight: 700; letter-spacing: .25em; margin: .8rem 0; border-top: 1px dashed #999; border-bottom: 1px dashed #999; padding: .35rem 0; }
.receipt table { width: 100%; }
.receipt-meta td:first-child { color: #555; width: 32%; }
.receipt-lines { margin: .8rem 0; }
.receipt-lines th { border-bottom: 1px solid #333; font-size: .75em; text-transform: uppercase; }
.receipt-lines td, .receipt-lines th { padding: .2rem 0; vertical-align: top; }
.receipt-totals { margin-top: .5rem; border-top: 1px dashed #999; }
.receipt-totals td { padding: .12rem 0; }
.receipt-totals tr.grand td { font-weight: 700; border-top: 1px solid #333; padding-top: .3rem; }
.receipt-foot { text-align: center; margin-top: 1rem; color: #555; }

@media print {
  .no-print, .sidebar, .topbar, .scrim { display: none !important; }
  body, .print-body { background: #fff !important; }
  .app-shell { display: block; }
  .content { padding: 0; max-width: none; }
  .receipt { box-shadow: none !important; margin: 0 auto !important; }
  .receipt.thermal { margin: 0 !important; }
  @page { margin: 8mm; }
}
