/* =========================================================
   RESTAURANT ADMIN PANEL
   MODERN LIGHT BLUE THEME
========================================================= */

:root {

    --sidebar-width: 260px;
    --topbar-height: 72px;

    /* Main Blue Palette */
    --blue-dark: #164e73;
    --blue: #2879ad;
    --blue-light: #eaf5fb;
    --blue-soft: #f3f9fc;
    --blue-border: #d9ebf5;

    /* Background */
    --background: #f5f9fc;
    --card: #ffffff;

    /* Text */
    --text: #1d3342;
    --muted: #718391;

    /* Borders */
    --border: #e3edf2;

    /* Status */
    --success: #198754;
    --warning: #d99000;
    --danger: #dc3545;
    --info: #2879ad;

    /* Radius */
    --radius: 16px;
    --radius-sm: 10px;

    /* Shadow */
    --shadow: 0 8px 30px rgba(40, 121, 173, 0.07);

    /* Font */
    --font-main: 'Outfit', sans-serif;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

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

body {

    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family: var(--font-main);

    font-size: 15px;

    line-height: 1.5;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: var(--font-main);
    font-size: 15px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.admin-wrapper {
    min-height: 100vh;
}

.admin-main {

    margin-left: var(--sidebar-width);

    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.admin-sidebar {

    width: var(--sidebar-width);

    height: 100vh;

    position: fixed;

    top: 0;
    left: 0;

    z-index: 1050;

    display: flex;

    flex-direction: column;

    background:
        #2879ad;
        );

    color: var(--text);

    border-right: 1px solid #d6e8f1;

    transition: transform 0.3s ease;
}


/* =========================================================
   BRAND
========================================================= */

.sidebar-brand {

    height: 88px;

    display: flex;

    align-items: center;

    padding: 0 24px;

    border-bottom: 1px solid rgba(40,121,173,0.10);
}

.brand-link {

    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--blue-dark);
}

.brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #ffffff;

    color: var(--blue);

    font-size: 20px;

    box-shadow:
        0 5px 15px rgba(40,121,173,0.08);
}

.brand-name {

    font-size: 19px;

    font-weight: 700;

    line-height: 1.1;
}

.brand-subtitle {

    margin-top: 3px;

    color: #7291a3;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


/* =========================================================
   SIDEBAR NAVIGATION
========================================================= */

.sidebar-nav {

    flex: 1;

    overflow-y: auto;

    padding: 24px 14px;
}

.nav-label {

    margin: 0 10px 10px;

    color: #7d9aaa;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;
}


/* ---------- NAV LINK ---------- */

.sidebar-link {

    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 0 14px;

    margin-bottom: 6px;

    border-radius: 12px;

    color: #547487;

    font-size: 15px;

    font-weight: 500;

    transition: all 0.2s ease;
}

.sidebar-link:hover {

    color: var(--blue-dark);

    background: rgba(255,255,255,0.65);

    transform: translateX(2px);
}


/* ---------- ACTIVE ---------- */

.sidebar-link.active {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2879ad,
            #3b8fbe
        );

    font-weight: 600;

    box-shadow:
        0 7px 18px rgba(40,121,173,0.18);
}

.sidebar-link-icon {

    width: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}

.sidebar-link.active .sidebar-link-icon {

    color: #ffffff;
}


/* ---------- DIVIDER ---------- */

.sidebar-divider {

    height: 1px;

    margin: 22px 10px;

    background: rgba(40,121,173,0.10);
}


/* =========================================================
   SIDEBAR ADMIN PROFILE
========================================================= */

.sidebar-bottom {

    padding: 16px;

    border-top: 1px solid rgba(40,121,173,0.10);
}

.admin-profile {

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 10px;

    border-radius: 13px;

    background: rgba(255,255,255,0.55);
}

.admin-avatar {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ffffff;

    color: var(--blue);

    font-size: 15px;

    font-weight: 700;

    box-shadow:
        0 4px 12px rgba(40,121,173,0.08);
}

.admin-info {

    min-width: 0;

    flex: 1;
}

.admin-name {

    overflow: hidden;

    color: var(--text);

    font-size: 14px;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.admin-role {

    margin-top: 1px;

    color: #7c929f;

    font-size: 12px;
}

.logout-icon {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    color: #688796;

    font-size: 18px;

    transition: all 0.2s ease;
}

.logout-icon:hover {

    background: #ffffff;

    color: #dc3545;
}


/* =========================================================
   TOP BAR
========================================================= */

.admin-topbar {

    height: var(--topbar-height);

    position: sticky;

    top: 0;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 32px;

    background: rgba(255,255,255,0.94);

    border-bottom: 1px solid var(--border);

    box-shadow:
        0 2px 15px rgba(40,121,173,0.035);

    backdrop-filter: blur(12px);
}

.topbar-left {

    display: flex;

    align-items: center;
}

.topbar-welcome {

    color: var(--muted);

    font-size: 15px;
}

.topbar-welcome strong {

    margin-left: 4px;

    color: var(--blue-dark);

    font-weight: 700;
}

.topbar-right {

    display: flex;

    align-items: center;

    gap: 18px;
}

.topbar-date {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 10px;

    background: var(--blue-soft);

    color: #678493;

    font-size: 14px;
}

.topbar-date i {

    color: var(--blue);

    font-size: 16px;
}

.topbar-avatar {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2879ad,
            #57a4cc
        );

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 5px 14px rgba(40,121,173,0.18);
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.admin-content {

    padding: 32px;
}

.page-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.page-title {

    margin: 0;

    color: var(--blue-dark);

    font-size: 26px;

    font-weight: 700;

    line-height: 1.2;
}

.page-subtitle {

    margin: 7px 0 0;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   CARDS
========================================================= */

.admin-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.admin-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);
}

.admin-card-title {

    margin: 0;

    color: var(--blue-dark);

    font-size: 17px;

    font-weight: 700;
}

.admin-card-body {

    padding: 22px;
}


/* =========================================================
   STAT CARDS
========================================================= */

.stat-card {

    height: 100%;

    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: all 0.2s ease;
}

.stat-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 14px 35px rgba(40,121,173,0.10);
}

.stat-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.stat-label {

    color: var(--muted);

    font-size: 14px;

    font-weight: 500;
}

.stat-icon {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 20px;
}

.stat-value {

    margin-top: 20px;

    color: var(--blue-dark);

    font-size: 27px;

    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   TABLE
========================================================= */

.table-responsive {

    border-radius: var(--radius-sm);
}

.admin-table {

    margin-bottom: 0;

    vertical-align: middle;
}

.admin-table thead th {

    padding: 15px 18px;

    background: var(--blue-soft);

    border-bottom: 1px solid var(--blue-border);

    color: #6e8796;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .3px;

    text-transform: uppercase;

    white-space: nowrap;
}

.admin-table tbody td {

    padding: 16px 18px;

    border-color: var(--border);

    color: var(--text);

    font-size: 14px;
}

.admin-table tbody tr {

    transition: background .2s ease;
}

.admin-table tbody tr:hover {

    background: #f8fcfe;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.status-badge {

    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 600;
}

.status-open {

    background: #fff4d6;

    color: #a66a00;
}

.status-complete {

    background: #dff7e9;

    color: #167a45;
}

.status-paid {

    background: #dcecff;

    color: #1769aa;
}

.status-refund {

    background: #eee6ff;

    color: #6b45b1;
}

.status-cancel {

    background: #ffe3e5;

    color: #b02a37;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    font-size: 14px;

    font-weight: 500;

    border-radius: 10px;

    padding: 10px 16px;

    transition: all .2s ease;
}

.btn-dark {

    background: var(--blue);

    border-color: var(--blue);
}

.btn-dark:hover,
.btn-dark:focus {

    background: var(--blue-dark);

    border-color: var(--blue-dark);
}

.btn-light {

    background: #ffffff;

    border-color: var(--border);

    color: var(--text);
}

.btn-light:hover {

    background: var(--blue-soft);

    border-color: var(--blue-border);

    color: var(--blue-dark);
}


/* =========================================================
   FORMS
========================================================= */

.form-label {

    margin-bottom: 7px;

    color: var(--text);

    font-size: 14px;

    font-weight: 600;
}

.form-control,
.form-select {

    min-height: 45px;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text);

    font-size: 15px;
}

.form-control:focus,
.form-select:focus {

    border-color: #7db4d0;

    box-shadow:
        0 0 0 3px rgba(40,121,173,0.08);
}


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {

    padding: 7px;

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(40,121,173,0.12);
}

.dropdown-item {

    padding: 9px 12px;

    border-radius: 8px;

    font-size: 14px;
}

.dropdown-item:hover {

    background: var(--blue-light);

    color: var(--blue-dark);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.sidebar-toggle {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #ffffff;

    color: var(--blue);

    font-size: 22px;
}

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 1040;

    background: rgba(18,55,76,0.35);

    opacity: 0;

    transition: opacity .3s ease;
}

.sidebar-overlay.show {

    display: block;

    opacity: 1;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {

    .admin-sidebar {

        transform: translateX(-100%);
    }

    .admin-sidebar.show {

        transform: translateX(0);
    }

    .admin-main {

        margin-left: 0;
    }

    .admin-topbar {

        padding: 0 20px;
    }

    .admin-content {

        padding: 24px 20px;
    }

}


@media (max-width: 767.98px) {

    .admin-topbar {

        height: 64px;
    }

    .topbar-welcome {

        font-size: 13px;
    }

    .page-header {

        flex-direction: column;
    }

    .page-title {

        font-size: 23px;
    }

    .admin-content {

        padding: 20px 15px;
    }

    .stat-value {

        font-size: 24px;
    }

}


@media (max-width: 575.98px) {

    .admin-sidebar {

        width: 280px;
    }

    .topbar-right {

        gap: 10px;
    }

    .topbar-avatar {

        width: 35px;
        height: 35px;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .admin-sidebar,
    .admin-topbar,
    .sidebar-overlay,
    .no-print {

        display: none !important;
    }

    .admin-main {

        margin-left: 0 !important;
    }

    .admin-content {

        padding: 0 !important;
    }

    body {

        background: #ffffff;
    }

}