/* =========================================================
   Hotel Booking System - Custom Styles
   Palette: Deep Navy (#0f2c46), Ink (#0a1c2e), Brass/Gold (#c9a24b),
            Warm Ivory (#faf7f1), Slate text (#3c4757)
   Type: 'Playfair Display' (display/serif) + 'Inter' (body/sans)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #0f2c46;
    --ink: #0a1c2e;
    --brass: #c9a24b;
    --brass-dark: #a9823a;
    --brass-light: #f6ecd6;
    --ivory: #faf7f1;
    --slate: #3c4757;
    --muted: #7c8a9a;
    --success: #1f7a4d;
    --danger: #b13b3b;
    --warning: #b8842f;
    --sidebar-width: 264px;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--ivory);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--slate);
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ---------------- Login Page ---------------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(201,162,75,0.18), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(201,162,75,0.10), transparent 40%),
        linear-gradient(160deg, var(--ink) 0%, var(--navy) 55%, #123a5c 100%);
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(10, 28, 46, 0.45);
    max-width: 920px;
    width: 100%;
    border: 1px solid rgba(201,162,75,0.25);
}

.login-brand-side {
    background:
        radial-gradient(circle at top right, rgba(201,162,75,0.25), transparent 55%),
        linear-gradient(160deg, var(--ink), var(--navy));
    color: #fff;
    padding: 55px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
}
.login-brand-side::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brass), transparent);
}
.login-brand-side .icon-circle {
    width: 66px; height: 66px;
    background: rgba(201,162,75,0.18);
    border: 1px solid rgba(201,162,75,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: var(--brass);
    margin-bottom: 22px;
}
.login-brand-side h2 { font-weight: 700; line-height: 1.25; letter-spacing: 0.2px; }
.login-brand-side .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    color: var(--brass);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-form-side { padding: 55px 44px; }
.login-form-side h3 { font-weight: 700; color: var(--ink); }
.login-form-side p.subtitle { color: var(--muted); margin-bottom: 30px; }

.btn-brass {
    background: linear-gradient(135deg, var(--brass), var(--brass-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: 0.2s ease;
    letter-spacing: 0.2px;
}
.btn-brass:hover { filter: brightness(1.06); color: #fff; }

.form-control-custom {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1.5px solid #e5e0d3;
}
.form-control-custom:focus {
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
}

/* ---------------- Layout ---------------- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(180deg, var(--ink), var(--navy));
    position: fixed;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.25s ease;
    border-right: 1px solid rgba(201,162,75,0.15);
}

.sidebar-brand {
    padding: 26px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(201,162,75,0.18);
}
.sidebar-brand .logo-icon {
    width: 42px; height: 42px;
    background: rgba(201,162,75,0.15);
    border: 1px solid rgba(201,162,75,0.4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brass); font-size: 18px;
}
.sidebar-brand span {
    color: #fff; font-weight: 700; font-size: 18px;
    font-family: 'Playfair Display', serif;
}

.sidebar-nav { padding: 22px 14px; flex: 1; }
.sidebar-nav .nav-link {
    color: #c7d2e0;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: 0.2s ease;
}
.sidebar-nav .nav-link i { width: 20px; text-align: center; }
.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--brass), var(--brass-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(201,162,75,0.35);
}

.sidebar-footer {
    padding: 18px 22px;
    border-top: 1px solid rgba(201,162,75,0.18);
}
.sidebar-footer a {
    font-weight: 500;
    text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    font-size: 14.5px;
}
.sidebar-footer a.settings-link { color: #c7d2e0; margin-bottom: 10px; }
.sidebar-footer a.settings-link:hover { color: #fff; }
.sidebar-footer a.logout-link { color: #e0a8a8; }
.sidebar-footer a.logout-link:hover { color: #f0b8b8; }

.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px 34px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.topbar .admin-chip {
    background: #fff;
    padding: 9px 18px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(15,44,70,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid rgba(201,162,75,0.25);
}
.admin-chip .avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--brass), var(--brass-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}

/* ---------------- Stat Cards (Dashboard) ---------------- */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 6px 22px rgba(15,44,70,0.07);
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-icon {
    width: 62px; height: 62px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
}
.stat-card .stat-number { font-family:'Playfair Display', serif; font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-weight: 600; margin-top: 8px; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.4px; }

.stat-card.guests::before { background: var(--navy); }
.stat-card.guests .stat-icon { background: linear-gradient(135deg,#1c4a72,var(--navy)); }
.stat-card.rooms::before { background: var(--brass); }
.stat-card.rooms .stat-icon { background: linear-gradient(135deg,var(--brass),var(--brass-dark)); }
.stat-card.bookings::before { background: var(--success); }
.stat-card.bookings .stat-icon { background: linear-gradient(135deg,#2a9463,var(--success)); }

/* ---------------- Cards / Tables ---------------- */
.content-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(15,44,70,0.07);
    padding: 26px;
}
.content-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.content-card .card-header-row h5 {
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.table-custom thead th {
    background: var(--brass-light);
    color: #8a6d2c;
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    padding: 14px 16px;
}
.table-custom tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: #f1ede3;
    font-size: 14.5px;
}
.table-custom tbody tr:hover { background: #fbf9f4; }

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}
.badge-available, .badge-confirmed, .badge-paid, .badge-checkedin { background:#dcf3e6; color:#166b3f; }
.badge-occupied, .badge-cancelled, .badge-failed { background:#fbe1e1; color:#96302f; }
.badge-maintenance, .badge-pending { background:#fbecd2; color:#946318; }
.badge-checkedout { background:#e3e8f5; color:#33417a; }
.badge-refunded { background:#e6e0f5; color:#5b3fa0; }

.btn-icon-action {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin-right: 4px;
    color: #fff;
    text-decoration: none;
}
.btn-edit { background: var(--brass); }
.btn-edit:hover { background: var(--brass-dark); color: #fff; }
.btn-delete { background: var(--danger); }
.btn-delete:hover { background: #8f2e2e; color: #fff; }

.btn-add-new {
    background: linear-gradient(135deg, var(--navy), var(--ink));
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-add-new:hover { filter: brightness(1.15); color: #fff; }

.form-label { font-weight: 600; color: var(--slate); font-size: 14px; }

.page-form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(15,44,70,0.07);
    padding: 32px;
    max-width: 840px;
}

/* Room type chip on room cards */
.room-type-chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--brass-light);
    color: #8a6d2c;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-toggle-btn { display: none; }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; }
    .sidebar-toggle-btn {
        display: inline-flex;
        background: var(--navy);
        color: #fff;
        border: none;
        width: 42px; height: 42px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
    }
}
