/* Drawer Menu Styles */

/* Hamburger toggle button */
.drawer-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    transition: all 0.3s;
    border-radius: 5px;
}

.drawer-toggle:hover {
    background: #f0f0f0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #f8d247;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Page title next to hamburger */
.page-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #000000;
    margin-left: 15px;
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 1em;
        margin-left: 10px;
    }
}

/* Drawer menu */
.drawer-menu {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.drawer-menu.open {
    left: 0;
}

/* Drawer header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #000000;
    color: white;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Drawer menu items */
.drawer-menu-items {
    padding: 10px 0;
    flex: 1;
    overflow-y: auto;
}

.drawer-menu-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.drawer-menu-link:hover {
    background: #fffde7;
    border-left-color: #f8d247;
    padding-left: 24px;
}

.drawer-menu-link.active {
    background: #000000;
    color: white;
    border-left-color: #f8d247;
}

/* Drawer footer */
.drawer-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
    background: #fffde7;
}

.drawer-user-info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.drawer-user-info strong {
    color: #333;
}

.user-role {
    color: #000000;
    font-size: 0.9em;
    margin-left: 5px;
}

.drawer-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: #d63031;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.drawer-logout-btn:hover {
    background: #c0281f;
}

/* Drawer overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .drawer-menu {
        width: 250px;
        left: -250px;
    }
}
