﻿/* ── Drawer Toggle (Hidden Checkbox) ── */
.drawer-toggle-input {
    display: none;
}

/* ── Hamburger Menu Button ── */
.btn-menu {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: none;
    background: transparent;
    color: #ffffff;
    transition: all 0.15s ease;
    font-size: 1.4rem;
    cursor: pointer;
}

    .btn-menu:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }

    .btn-menu:active {
        transform: scale(0.95);
    }

/* ── Drawer Overlay ── */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    cursor: pointer;
}

/* Show overlay when checkbox is checked - Now using general sibling selector */
.drawer-toggle-input:checked ~ .drawer-overlay {
    display: block;
}

/* ── Drawer Navigation ── */
.drawer {
    position: fixed;
    top: 0;
    left: -300px;
    min-width:150px;
    max-width:250px;
    height: 100vh;
    background: #001132;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /*opacity: .7;*/
}

[dir="rtl"] .drawer {
    left: auto;
    right: -300px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

/* Show drawer when checkbox is checked - Now using general sibling selector */
.drawer-toggle-input:checked ~ .drawer {
    left: 0;
}

[dir="rtl"] .drawer-toggle-input:checked ~ .drawer {
    left: auto;
    right: 0;
}

/* ... rest of your drawer styles ... */

.drawer-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}