/* =========================================
   CUSTOMER DASHBOARD
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

.container {
    min-height: 100vh;
}


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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    background-color: #041c4a;

    display: flex;
    flex-direction: column;

    z-index: 1000;
}


/* LOGO */

.sidebar-logo {
    height: 90px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-logo img {
    width: 180px;
    max-width: 90%;

    pointer-events: none;
}


/* NAVIGATION */

.sidebar nav {
    display: flex;
    flex-direction: column;

    margin-top: 20px;
}

.sidebar nav a {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 25px;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    transition: 0.2s;
}

.sidebar nav a i {
    width: 20px;

    font-size: 17px;
}

.sidebar nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar nav a.active {
    background-color: #f5b400;
    color: #041c4a;

    font-weight: 600;
}


/* =========================================
   MAIN CONTENT
   ========================================= */

.main-content {
    margin-left: 250px;

    min-height: 100vh;
}


/* =========================================
   HEADER
   ========================================= */

header {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    height: 70px;
    background-color: #041c4a;
    border-bottom: 1px solid #eeeeee;
    z-index: 1100;
}

.top-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}


/* HEADER LEFT */

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 24px;
    color: #fff;
}

#menu-toggle {
    display: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}


/* HEADER RIGHT */

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}


/* =========================================
   NOTIFICATION
   ========================================= */

.notification {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
}

#notification i {
    color: #fff;
}

.notification-badge {
    position: absolute;

    top: -8px;
    right: -9px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: flex;

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

    border-radius: 50%;

    background-color: red;

    color: #fff;

    font-size: 10px;

    font-weight: 700;
}


/* NOTIFICATION DROPDOWN */

.notification-dropdown {
    display: none;

    position: absolute;

    top: 70px;
    right: 120px;

    width: 250px;

    background-color: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    padding: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);

    z-index: 1200;
}

.notification-dropdown h3 {
    color: #041c4a;

    font-size: 16px;

    margin-bottom: 10px;
}

.notification-dropdown p {
    color: #777;

    font-size: 14px;
}


/* =========================================
   PROFILE
   ========================================= */

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
}

.profile span {
    color: #fff;
}

.profile i {
    color: #fff;
}

.profile>i:first-child {
    font-size: 28px;
}

.profile .down {
    font-size: 11px;
}


/* PROFILE DROPDOWN */

.profile-dropdown {
    display: none;

    position: absolute;

    top: 50px;
    right: 0;

    width: 210px;

    background-color: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    z-index: 1200;
}

.profile-dropdown-header {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px;

    background-color: #f8f8f8;

    color: #041c4a;

    font-weight: 600;
}

.profile-dropdown-header i {
    font-size: 25px;
}

.profile-dropdown a,
.profile-dropdown button {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    border: none;

    background: none;

    text-decoration: none;

    color: #333;

    font-size: 14px;

    cursor: pointer;

    text-align: left;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background-color: #f5f5f5;
}


/* =========================================
   DASHBOARD CONTENT
   ========================================= */

.dashboard-content {
    padding: 100px 30px 30px;
}


/* =========================================
   WELCOME SECTION
   ========================================= */

.welcome-section {
    background-color: #ffffff;

    border-radius: 10px;

    padding: 25px;

    margin-bottom: 25px;

    border-left: 5px solid #f5b400;
}

.welcome-section h2 {
    color: #041c4a;

    font-size: 22px;

    margin-bottom: 8px;
}

.welcome-section p {
    color: #777;

    font-size: 14px;
}


/* =========================================
   STATISTICS
   ========================================= */

.stats-container {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;

    border-radius: 10px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;

    border-radius: 10px;

    background-color: #fff4cc;

    display: flex;

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

    color: #041c4a;

    font-size: 21px;
}

.card-total h3 {
    color: #777;

    font-size: 13px;

    margin-bottom: 5px;
}

.card-total p {
    color: #041c4a;

    font-size: 24px;

    font-weight: 700;
}


/* =========================================
   RECENT BOOKINGS
   ========================================= */

.recent-bookings {
    background-color: #ffffff;

    border-radius: 10px;

    padding: 25px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.section-header h2 {
    color: #041c4a;

    font-size: 20px;
}

.section-header a {
    color: #041c4a;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.section-header a:hover {
    color: #f5b400;
}


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

.table-container {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    min-width: 500px;
}

table th {
    background-color: #041c4a;

    color: #ffffff;

    padding: 13px;

    text-align: left;

    font-size: 13px;
}

table td {
    padding: 13px;

    border-bottom: 1px solid #eeeeee;

    font-size: 14px;

    color: #555;
}

table tbody tr:hover {
    background-color: #fafafa;
}


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

@media (max-width: 1000px) {

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .sidebar {
        display: none;
    }

    .sidebar.active {
        display: flex;
        top: 70px;
        height: calc(100vh - 70px);
    }

    .main-content {
        margin-left: 0;
    }

    header {
        left: 0;
    }

    #menu-toggle {
        display: block;
    }

    .top-header {
        padding: 0 20px;
    }

    .header-left h1 {
        font-size: 20px;
    }

    .profile span {
        display: none;
    }

    .dashboard-content {
        padding: 95px 20px 25px;
    }

}


@media (max-width: 600px) {

    .stats-container {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 20px;
    }

    .welcome-section h2 {
        font-size: 19px;
    }

    .recent-bookings {
        padding: 18px;
    }

    .section-header {
        align-items: flex-start;

        gap: 10px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .header-right {
        gap: 15px;
    }

    .notification-dropdown {
        right: 50px;
    }

}


@media (max-width: 450px) {

    .top-header {
        padding: 0 15px;
    }

    .dashboard-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .profile-dropdown {
        right: -5px;
    }

    .notification-dropdown {
        right: 20px;
        width: 220px;
    }

}

/* Refresh Button */
.refresh-button {
    border: none;
    background-color: #041c4a;
    color: #ffffff;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: 0.2s ease;
}

.refresh-button:hover {
    background-color: #f5b400;
    color: #041c4a;
}

.refresh-button i {
    font-size: 14px;
}


/* ===============================
   CUSTOMER PROFILE
   =============================== */

.profile-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.profile-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #041c4a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.profile-card-header h2 {
    margin: 0;
    color: #041c4a;
    font-size: 22px;
}

.profile-card-header p {
    margin: 5px 0 0;
    color: #777777;
    font-size: 14px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px 0;
}

.profile-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-detail span {
    color: #777777;
    font-size: 14px;
}

.profile-detail span i {
    color: #041c4a;
    width: 18px;
}

.profile-detail strong {
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    word-break: break-word;
}

.profile-actions {
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

#profile-logout {
    border: none;
    background-color: #041c4a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
}

#profile-logout:hover {
    background-color: #f5b400;
    color: #041c4a;
}


/* ===============================
   PROFILE MOBILE
   =============================== */

@media (max-width: 600px) {

    .profile-card {
        padding: 18px;
        margin-top: 20px;
    }

    .profile-card-header h2 {
        font-size: 19px;
    }

    .profile-details {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 0;
    }

    .profile-detail strong {
        font-size: 15px;
    }

    #profile-logout {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   CUSTOMER HEADER POSITION
   =============================== */

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    height: 100%;
}

.notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification>i {
    font-size: px;
    color: #041c4a;
}

.profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #041c4a;
}

.profile>i:first-child {
    font-size: 20px;
}

.profile>span {
    font-size: 20px;
    font-weight: 500;
}

.profile>i:last-child {
    font-size: 18px;
}


/* Notification dropdown */

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 220px;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1200;
}


/* Profile dropdown */

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 180px;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1200;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #041c4a;
    text-decoration: none;
}

.profile-dropdown a:hover {
    background-color: #f5b400;
}

.profile-dropdown button:hover {
    background-color: #f5b400;
}

/* ===============================
   BOOKING DETAILS MODAL
================================ */

/* .booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.booking-modal-content {
    display: block;
    width: 90%;
    max-width: 500px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    z-index: 100000;
}

.booking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.booking-modal-header h2 {
    margin: 0;
    color: #041c4a;
    font-size: 22px;
}

#close-booking-modal {
    border: none;
    background: none;
    color: #041c4a;
    font-size: 22px;
    cursor: pointer;
}

.booking-details p {
    margin: 12px 0;
    color: #333;
    font-size: 15px;
}

.booking-details strong {
    display: inline-block;
    width: 90px;
    color: #041c4a;
}

.booking-details span {
    color: #041c4a;
}

@media (max-width: 600px) {

    .booking-modal-content {
        width: 90%;
        padding: 20px;
    }

    .booking-modal-header h2 {
        font-size: 20px;
    }

    .booking-details p {
        font-size: 14px;
    }
} */
/* ===============================
   CUSTOMER BOOKING ACTION
================================ */

.view-booking {
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 3px;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    background-color: #041c4a;
}

.view-booking:hover {
    opacity: 0.85;
}


/* ===============================
   CUSTOMER BOOKING STATUS
================================ */

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}