:root {
    --admin-bg: #f4efe8;
    --admin-surface: #ffffff;
    --admin-sidebar: #15181d;
    --admin-sidebar-soft: #1f242b;
    --admin-gold: #c89b3c;
    --admin-gold-soft: #e8d7a5;
    --admin-text: #171b22;
    --admin-muted: #68707d;
    --admin-line: rgba(23, 27, 34, 0.08);
    --admin-shadow: 0 18px 48px rgba(11, 17, 28, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    background: linear-gradient(180deg, #f6f1ea 0%, #f0ebe4 100%);
    color: var(--admin-text);
}

.admin-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7f3ee 0%, #efe7dd 100%);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 267px;
    background: linear-gradient(180deg, var(--admin-sidebar) 0%, #14191f 100%);
    color: #f4efe8;
    padding: 28px 18px;
    position: sticky;
    top: 0;
    box-shadow: 18px 0 35px rgba(12, 15, 20, 0.15);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-label {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-section-title {
    margin: 18px 10px 8px;
    color: rgba(244, 239, 232, 0.68);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-submenu {
    padding-left: 0;
    margin-top: 4px;
}

.nav-submenu .nav-link {
    padding-left: 2.8rem;
    font-size: 0.9em;
}

/* Fix for Tailwind CSS conflict with Bootstrap collapse */
.collapse.show {
    visibility: visible !important;
}

.hotel-toggle-icon {
    transition: transform 0.2s ease;
}

.hotel-toggle-icon.open {
    transform: rotate(180deg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-weight: 600;
}

.nav-link i {
    width: 18px;
    text-align: center;
    color: var(--admin-gold-soft);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(200, 155, 60, 0.3);
}

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

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 16px;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--admin-line);
    position: relative;
    z-index: 1050;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-toggle {
    display: none;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    width: 42px;
    height: 42px;
    color: var(--admin-text);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--admin-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.page-title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--admin-text);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--admin-line);
    color: var(--admin-muted);
    min-width: 180px;
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--admin-text);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--admin-line);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-gold) 0%, #8a6922 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
}

.user-pill strong,
.user-pill small {
    display: block;
    line-height: 1.2;
}

.user-pill strong {
    color: var(--admin-text);
    font-size: 0.85rem;
}

.user-pill small {
    color: var(--admin-muted);
}

.content-area {
    padding: 28px 32px 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: var(--admin-shadow);
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 50px rgba(11, 17, 28, 0.12);
}

.stat-card.primary {
    background: linear-gradient(135deg, #1b1d22 0%, #2d3440 100%);
    color: #fff;
}

.stat-card.accent {
    background: linear-gradient(135deg, #f6e6bb 0%, #e5d09b 100%);
    z-index: 1;
}

.stat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.78;
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(200, 155, 60, 0.14);
    color: var(--admin-gold);
}

.stat-card.primary .stat-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #f4d68d;
}

.stat-card h3 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.stat-card p {
    margin: 10px 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.panel-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--admin-line);
    border-radius: 22px;
    box-shadow: var(--admin-shadow);
    padding: 22px 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--admin-line);
    text-align: left;
    font-size: 0.92rem;
}

.data-table th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--admin-muted);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-success {
    background: rgba(26, 140, 95, 0.12);
    color: #1f7a59;
}

.status-warning {
    background: rgba(200, 155, 60, 0.12);
    color: #8f6d23;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(245, 241, 236, 0.9);
    border: 1px solid rgba(23, 27, 34, 0.05);
    font-weight: 600;
    color: var(--admin-text);
}

.task-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.task-bullet.gold {
    background: var(--admin-gold);
}

.task-bullet.dark {
    background: var(--admin-sidebar);
}

.btn-outline-gold {
    border: 1px solid var(--admin-gold);
    color: var(--admin-gold);
    background: transparent;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 700;
}

.btn-outline-gold:hover {
    background: var(--admin-gold);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--admin-gold) 0%, #a87b28 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(200, 155, 60, 0.22);
}

.btn-gold:hover {
    color: white;
    filter: brightness(1.04);
}

.page-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.data-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
    padding: 22px 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 180px;
}

.feature-card i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(200, 155, 60, 0.12);
    color: var(--admin-gold);
    font-size: 1.3rem;
}

.feature-card h4,
.room-card h4 {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
}

.feature-card p,
.room-card p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.7;
}

.room-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.chip,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chip {
    background: rgba(200, 155, 60, 0.12);
    color: var(--admin-gold);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    background: rgba(21, 24, 29, 0.06);
    color: var(--admin-text);
}

.pill.muted {
    background: rgba(104, 112, 125, 0.08);
    color: var(--admin-muted);
}

.table-link {
    color: var(--admin-gold);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
    }

    .topbar {
        padding: 18px 18px 12px;
    }

    .content-area {
        padding: 20px 18px 32px;
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .search-box {
        min-width: 0;
        flex: 1;
    }

    .topbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
