/* =========================================================
   HOTEL MANAGEMENT - ADMIN PANEL
   Responsive Admin CSS
   ========================================================= */

:root {
    --hotel-primary: #206bc4;
    --hotel-primary-dark: #1a5aa8;
    --hotel-bg: #f5f7fb;
    --hotel-sidebar: #ffffff;
    --hotel-text: #1e293b;
    --hotel-muted: #64748b;
    --hotel-border: #e6eaf0;
    --hotel-white: #ffffff;
    --hotel-success: #2fb344;
    --hotel-warning: #f59f00;
    --hotel-danger: #d63939;
    --hotel-info: #4299e1;
    --hotel-purple: #ae3ec9;
    --hotel-sidebar-width: 250px;
}

/* =========================
   BASIC
   ========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--hotel-bg);
    color: var(--hotel-text);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================
   PAGE
   ========================= */

.page {
    min-height: 100vh;
    background: var(--hotel-bg);
}

/* =========================
   SIDEBAR
   ========================= */

.hotel-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: var(--hotel-sidebar-width);

    background: var(--hotel-sidebar);
    border-right: 1px solid var(--hotel-border);

    z-index: 1050;

    display: flex;
    flex-direction: column;

    transition: transform 0.25s ease;
}

.hotel-brand {
    height: 64px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid var(--hotel-border);

    font-size: 18px;
    font-weight: 700;

    color: var(--hotel-primary);
}

.hotel-brand-icon {
    width: 36px;
    height: 36px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1fc;

    margin-right: 10px;

    font-size: 20px;
}

.hotel-brand-text {
    line-height: 1.1;
}

.hotel-brand-subtitle {
    display: block;

    font-size: 10px;
    font-weight: 500;

    color: var(--hotel-muted);

    margin-top: 3px;
}

/* sidebar scroll */

.hotel-sidebar-scroll {
    flex: 1;
    overflow-y: auto;

    padding: 14px 10px 20px;
}

/* section */

.menu-section-title {
    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: #94a3b8;

    padding: 14px 12px 7px;
}

/* menu item */

.hotel-menu-item {
    display: flex;
    align-items: center;

    width: 100%;

    min-height: 42px;

    padding: 9px 12px;

    margin: 2px 0;

    border-radius: 7px;

    color: #475569;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.hotel-menu-item:hover {
    background: #f1f5f9;
    color: var(--hotel-primary);
}

.hotel-menu-item.active {
    background: #e8f1fc;
    color: var(--hotel-primary);

    font-weight: 600;
}

.hotel-menu-icon {
    width: 28px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    font-size: 17px;

    margin-right: 7px;
}

.hotel-menu-arrow {
    margin-left: auto;

    font-size: 11px;

    transition: transform 0.2s ease;
}

.hotel-menu-parent.open .hotel-menu-arrow {
    transform: rotate(90deg);
}

/* submenu */

.hotel-submenu {
    display: none;

    margin-left: 39px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.hotel-submenu.show {
    display: block;
}

.hotel-submenu a {
    display: block;

    padding: 8px 10px;

    border-radius: 6px;

    font-size: 13px;

    color: #64748b;
}

.hotel-submenu a:hover {
    background: #f8fafc;
    color: var(--hotel-primary);
}

/* sidebar footer */

.hotel-sidebar-footer {
    padding: 12px;

    border-top: 1px solid var(--hotel-border);
}

.sidebar-user-box {
    display: flex;
    align-items: center;

    padding: 9px;

    background: #f8fafc;

    border-radius: 8px;
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--hotel-primary);
    color: white;

    font-weight: 700;
}

.sidebar-user-info {
    margin-left: 9px;

    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 13px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: var(--hotel-muted);
    font-size: 11px;
}

/* =========================
   MAIN AREA
   ========================= */

.page-wrapper {
    margin-left: var(--hotel-sidebar-width);

    min-height: 100vh;
}

/* =========================
   TOP NAVBAR
   ========================= */

.hotel-topbar {
    height: 64px;

    background: var(--hotel-white);

    border-bottom: 1px solid var(--hotel-border);

    display: flex;
    align-items: center;

    padding: 0 24px;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.hotel-mobile-menu {
    display: none;

    border: 0;
    background: transparent;

    font-size: 24px;

    margin-right: 12px;

    cursor: pointer;
}

.topbar-page-title {
    font-size: 17px;
    font-weight: 600;
}

.topbar-spacer {
    flex: 1;
}

.topbar-notification {
    position: relative;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: #64748b;
}

.topbar-notification:hover {
    background: #f1f5f9;
}

.notification-dot {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d63939;

    top: 7px;
    right: 7px;

    border: 2px solid white;
}

/* profile */

.topbar-user {
    margin-left: 12px;

    position: relative;
}

.topbar-user-button {
    border: 0;
    background: transparent;

    display: flex;
    align-items: center;

    padding: 5px 7px;

    border-radius: 8px;

    cursor: pointer;
}

.topbar-user-button:hover {
    background: #f8fafc;
}

.topbar-avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8f1fc;
    color: var(--hotel-primary);

    font-weight: 700;
}

.topbar-user-details {
    margin-left: 9px;

    text-align: left;
}

.topbar-user-name {
    font-size: 13px;
    font-weight: 600;
}

.topbar-user-role {
    font-size: 11px;
    color: var(--hotel-muted);
}

.user-dropdown {
    display: none;

    position: absolute;

    top: 48px;
    right: 0;

    width: 190px;

    background: white;

    border: 1px solid var(--hotel-border);

    border-radius: 9px;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);

    padding: 7px;

    z-index: 2000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;

    padding: 9px 10px;

    border-radius: 6px;

    font-size: 13px;

    color: #475569;
}

.user-dropdown a:hover {
    background: #f1f5f9;
}

.user-dropdown .logout {
    color: var(--hotel-danger);
}

/* =========================
   CONTENT
   ========================= */

.hotel-content {
    padding: 25px;
}

.page-header {
    margin-bottom: 22px;
}

.page-pretitle {
    color: var(--hotel-muted);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    font-weight: 600;
}

.page-title {
    margin: 3px 0 0;

    font-size: 24px;

    font-weight: 700;

    color: #172033;
}

/* =========================
   GRID
   ========================= */

.hotel-row {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 20px;
}

.hotel-row-2 {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 18px;

    margin-bottom: 20px;
}

/* =========================
   CARDS
   ========================= */

.hotel-card {
    background: white;

    border: 1px solid var(--hotel-border);

    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03);

    overflow: hidden;
}

.hotel-card-body {
    padding: 20px;
}

.hotel-card-header {
    min-height: 58px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid var(--hotel-border);
}

.hotel-card-title {
    font-size: 15px;

    font-weight: 600;

    margin: 0;
}

.hotel-card-subtitle {
    color: var(--hotel-muted);

    font-size: 12px;

    margin-top: 2px;
}

/* =========================
   STAT CARDS
   ========================= */

.stat-card {
    position: relative;

    overflow: hidden;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    color: var(--hotel-muted);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.03em;
}

.stat-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 19px;
}

.stat-value {
    margin-top: 12px;

    font-size: 25px;

    font-weight: 700;

    color: #172033;
}

.stat-description {
    margin-top: 5px;

    font-size: 12px;

    color: var(--hotel-muted);
}

.stat-blue .stat-icon {
    background: #e8f1fc;
    color: #206bc4;
}

.stat-green .stat-icon {
    background: #eaf7ec;
    color: #2fb344;
}

.stat-orange .stat-icon {
    background: #fff4df;
    color: #f59f00;
}

.stat-purple .stat-icon {
    background: #f7eafa;
    color: #ae3ec9;
}

/* =========================
   QUICK ACTIONS
   ========================= */

.quick-actions {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.quick-action {
    padding: 14px;

    border: 1px solid var(--hotel-border);

    border-radius: 8px;

    background: #fff;

    text-align: center;

    cursor: pointer;

    transition: all 0.15s ease;
}

.quick-action:hover {
    border-color: #b8d1ef;

    background: #f8fbff;

    transform: translateY(-1px);
}

.quick-action-icon {
    font-size: 22px;

    margin-bottom: 7px;
}

.quick-action-title {
    font-size: 12px;

    font-weight: 600;

    color: #475569;
}

/* =========================
   TABLE STATUS
   ========================= */

.table-status-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.table-status {
    padding: 15px 10px;

    border-radius: 8px;

    text-align: center;

    border: 1px solid;
}

.table-status-number {
    font-size: 20px;

    font-weight: 700;
}

.table-status-name {
    font-size: 11px;

    margin-top: 3px;
}

.table-available {
    background: #edf9ef;
    border-color: #c8e8ce;
    color: #238b45;
}

.table-occupied {
    background: #fff0f0;
    border-color: #f1c8c8;
    color: #c92a2a;
}

.table-reserved {
    background: #fff7e6;
    border-color: #f4ddb1;
    color: #d97706;
}

.table-cleaning {
    background: #edf5ff;
    border-color: #c8dcf5;
    color: #206bc4;
}

/* =========================
   SALES PLACEHOLDER
   ========================= */

.chart-area {
    height: 250px;

    display: flex;
    align-items: flex-end;

    gap: 10px;

    padding: 20px 10px 10px;

    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #edf1f5 25%,
            transparent 25%,
            transparent 49%,
            #edf1f5 50%,
            transparent 50%,
            transparent 74%,
            #edf1f5 75%,
            transparent 75%
        );
}

.chart-bar {
    flex: 1;

    max-width: 55px;

    margin: 0 auto;

    background: #206bc4;

    border-radius: 5px 5px 0 0;

    min-height: 10px;

    position: relative;
}

.chart-bar:hover {
    background: #1a5aa8;
}

.chart-label {
    position: absolute;

    bottom: -22px;

    left: 0;
    right: 0;

    text-align: center;

    font-size: 10px;

    color: #64748b;
}

/* =========================
   WELCOME
   ========================= */

.welcome-box {
    padding: 22px;

    background:
        linear-gradient(
            135deg,
            #eaf3ff,
            #f8fbff
        );

    border: 1px solid #d5e5f8;

    border-radius: 10px;
}

.welcome-title {
    font-size: 18px;

    font-weight: 700;

    margin-bottom: 5px;
}

.welcome-text {
    color: #64748b;

    font-size: 13px;

    margin: 0;
}

/* =========================
   BADGES
   ========================= */

.badge {
    display: inline-block;

    padding: 4px 8px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;
}

.badge-success {
    background: #eaf7ec;
    color: #238b45;
}

.badge-danger {
    background: #fff0f0;
    color: #c92a2a;
}

.badge-warning {
    background: #fff7e6;
    color: #d97706;
}

.badge-info {
    background: #edf5ff;
    color: #206bc4;
}

/* =========================
   MOBILE OVERLAY
   ========================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, 0.4);

    z-index: 1040;
}

.sidebar-overlay.show {
    display: block;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {

    .hotel-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    :root {
        --hotel-sidebar-width: 240px;
    }

    .hotel-sidebar {
        transform: translateX(-100%);
    }

    .hotel-sidebar.show {
        transform: translateX(0);
    }

    .page-wrapper {
        margin-left: 0;
    }

    .hotel-mobile-menu {
        display: block;
    }

    .hotel-row-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .hotel-topbar {
        padding: 0 14px;
    }

    .hotel-content {
        padding: 16px;
    }

    .hotel-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar-user-details {
        display: none;
    }

    .page-title {
        font-size: 21px;
    }
}

@media (max-width: 480px) {

    .hotel-content {
        padding: 12px;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .hotel-card-body {
        padding: 15px;
    }

    .stat-value {
        font-size: 22px;
    }
}