:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --primary-orange: #ff6b35;
    --orange-hover: #ff8c5a;
    --sidebar-dark: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --dark-text: #1e293b;
    --gray-text: #64748b;
    --light-gray: #e2e8f0;
    --border-gray: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
#sidebar {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--sidebar-dark) 100%);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-right: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(30,60,114,0.3);
}

#sidebar.hidden {
    transform: translateX(-100%);
}

#sidebar.show {
    transform: translateX(0);
}

nav {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.navHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navHeaderTitle {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.menuBtn, .menuBtn2 {
    border: none;
    background: rgba(255,255,255,0.1);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    color: var(--white);
    cursor: pointer;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menuBtn:hover, .menuBtn2:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.menuBtn2 {
    color: var(--primary-blue);
    background: var(--white);
    display: none;
    margin-right: 1rem;
}

.menuBtn2.show {
    display: flex;
}

.navLink {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    margin: 0.25rem 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navLink i {
    width: 20px;
    font-size: 1.1rem;
}

.navLink:hover, .navLink.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.overlay.show {
    display: block;
}

/* Main Content */
#main {
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 280px);
    height: 100vh;
    overflow-y: auto;
    padding-top: 70px;
}

#main.full {
    margin-left: 0;
    width: 100%;
}

/* Header */
#mainHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    width: calc(100% - 280px);
    z-index: 998;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainHeader.full {
    width: 100%;
}

.mainHeaderLeft {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mainHeaderLeftTitle {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.searchContainer{
    padding: 0;
    width: 40vw;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#searchInput{
    height: 35px;
    border-radius: 16px;
    background-color: var(--light-gray);
    padding: 0 .5rem 0 2.5rem;
    border: 2px solid var(--light-gray);
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

#searchIcon{
    position: absolute;
    color: var(--gray-text);
    padding-left: 1rem;
}

/* Right Header Section - NEW */
.mainHeaderRight {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notif-container {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--light-bg);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-text);
    transition: all 0.3s ease;
}

.notif-container:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.3);
}  

.notif-time {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.badge { 
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--error);
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.dropdown {
    position: absolute; 
    right: -70px; 
    top: 60px; 
    width: 340px;
    background: white; 
    border: 1px solid #ccc; 
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    border-radius: 4px;
}

.hidden { 
    display: none; 
}

.dropdown-header { 
    padding: 10px; 
    font-weight: bold; 
    border-bottom: 1px solid #eee; 
}

ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    max-height: 400px; 
    overflow-y: auto; 
}

li { 
    padding: 10px; 
    border-bottom: 1px solid #eee; 
    font-size: 14px; 
    cursor: pointer; 
}

li.unread { 
    background: #f0f7ff; 
    border-left: 4px solid #007bff; 
}

li:hover { 
    background: #f9f9f9; 
}

.type { 
    font-weight: bold; 
    text-transform: capitalize; 
    font-size: 12px; 
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
    transition: all 0.3s ease;
}

.profile-info {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    gap: 10px;
    color: var(--dark-text);
    border-bottom: 1px solid var(--light-gray);
}

.mini-profile-avatar{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
    transition: all 0.3s ease;
}

.profile-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-role {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 500;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--light-gray);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
    padding-left: 1.5rem;
}

.mainContent {
    background: var(--white);
    margin: 1.5rem;
    border-radius: 6px;
    /* height: 530px; */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
}

.mainContentHeader {
    background: var(--primary-blue);
    border-radius: 6px 6px 0 0;
    padding: .6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sortContainer {
    background: var(--primary-blue);
    padding: .6rem 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
}

#statusFilter,
#dateFilter {
    background-color: white;
    color: var(--primary-blue);
    font-size: .9rem;
    font-weight: 600;
    outline: none;
    padding: .3rem .6rem;
    border-radius: 6px;
}

.mainContentHeaderText {
    color: var(--white);
    font-size: 1rem;
}

#addButton{
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: .3rem .6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#addButton:hover {
    transform: scale(1.05);
}

/* Table */
table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
}

thead, tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

th, td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--white);
    color: var(--dark-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

.editButton {
    padding: 8px 15px;
    background: var(--primary-blue);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
}

.editButton:hover {
    transform: scale(1.05);
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-title {
    text-align: center;
    margin-bottom: 15px;
}
.modal-content {
    background: #fff;
    width: 330px;
    padding: 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    position: relative;
}
.close-btn {
    position: absolute;
    right: 15px;
    top: 8px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}
.close-btn:hover {
    color: #000;
}
.modal-content h3 {
    margin-top: 10px;
    color: #0f172a;
}
.input-field {
    width: 100%;
    padding: 10px;
    margin-top: 7px;
    font-size: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-family: inherit;
    background: var(--light-bg);
    outline: none;
    appearance: none;
}

.input-field:focus {
    border-color: var(--primary-orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
    transform: translateY(-1px);
}

.input-field-picker {
    width: 99%;
}

#togglePassword {
    position: absolute;
    right: 30px;
    bottom: 105px;
    font-size: 18px;
    cursor: pointer;
}
.modal-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--primary-blue);
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.modal-btn:hover {
    transform: scale(1.1);
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.reservationActions {
    display: flex;
    justify-content: center;
    gap: .3rem;
    flex-direction: column;
}

#rejectBtn {
    background-color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
#approveBtn {
    background-color: green;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
#cancelBtn {
    background-color: blue;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    margin-top: 10px;
}
.pagination-controls {
    display: flex;
    gap: 5px;
}
.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}
.pagination-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}
.pagination-btn:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #ccc;
}
.pagination-info {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 1260px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #mainHeader {
        width: 100vw;
    }

    #main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .menuBtn2 {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navHeader{
        margin-bottom: 0;
    }

    #mainHeader {
        padding: 1rem 1.5rem;
        flex-direction: row;
        gap: 1rem;
        align-items: stretch;
        width: 100vw;
    }

    .mainHeaderLeftTitle {
        display: none;
    }

    .mainHeaderRight {
        justify-content: flex-end;
    }

    .mainContent {
        margin: 1rem .2rem;
    }
}