/* ===========================
   RESET AND BASE STYLES
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    color: #333;
    border-right: 1px solid #e1e4e8;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0056b3;
    margin: 0;
    line-height: 1.2;
}

.brand-logo {
    max-width: 45px;
    height: auto;
    display: block;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-menu .badge {
    padding: 0.35em 0.65em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.sidebar-header {
    padding: 15px 20px 5px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #fd7e14;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 10px;
    text-align: center;
    color: #28a745;
}

.sidebar-menu li a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.sidebar-menu li a.active {
    background-color: #e3f2fd;
    color: #0056b3;
    border-left: 4px solid #fd7e14;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #ffffff;
    margin-top: auto;
    width: 100%;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c82333;
    color: #fff;
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    transition: all 0.3s;
}

/* ===========================
   HAMBURGER BUTTON
=========================== */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1200;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 6px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.hamburger-btn:hover {
    background-color: #004494;
}

/* ===========================
   OVERLAY
=========================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ===========================
   MOBILE TOP BAR
=========================== */
.mobile-topbar {
    display: none;
}

/* ===========================
   RESPONSIVE — 768px
=========================== */
@media (max-width: 768px) {

    .hamburger-btn {
        display: flex;
        position: static;
        box-shadow: none;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .sidebar {
        transform: translateX(-250px);
        padding-top: 60px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-brand {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
        padding-top: 70px;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #ffffff;
        border-bottom: 1px solid #e1e4e8;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        z-index: 1100;
        padding: 0 15px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-brand-logo {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .mobile-brand-name {
        font-size: 0.95rem;
        font-weight: 800;
        color: #0056b3;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .row.g-4 > [class*="col-"] {
        padding: 0.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .d-flex.gap-1 {
        flex-wrap: wrap;
    }
}

/* ===========================
   RESPONSIVE — 480px
=========================== */
@media (max-width: 480px) {

    .main-content {
        padding: 10px;
        padding-top: 65px;
    }

    .hamburger-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 768px) {
    #bookingHistoryBody td:first-child,
    #history thead th:first-child {
        display: none;
    }
}