/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--card-bg);
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
}

.header .site-title {
    margin-left: 10px;
    font-size: 18px;
    color: var(--text-color);
}

/* MENU TOGGLE BUTTON */
#menuToggle {
    font-size: 24px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* gizli vəziyyətdə */
    width: 250px;
    height: 100%;
    background: var(--card-bg);
    padding-top: 60px; /* header üçün boşluq */
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1003;
    display: flex;
    flex-direction: column;
}

/* CLOSE BUTTON */
#menuClose {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

#menuClose:hover {
    background: #e04343;
}

/* Overlay */
#overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1001;
}

/* MENU ITEMS */
.sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
}

.sidebar .menu-item:hover {
    background: var(--card-hover);
    color: var(--accent-color);
}

.sidebar .menu-item img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(0);
}

/* Dark Mode */
body.dark .sidebar {
    background: var(--card-bg);
}

body.dark .sidebar .menu-item {
    color: #f0f0f0;
}

body.dark .sidebar .menu-item img {
    filter: brightness(0) invert(1);
}

/* Active State */
.sidebar.open {
    left: 0;
}
#overlay.active {
    display: block;
}



#menuClose {
    transition: transform 0.3s ease;
}
#menuClose:hover {
    transform: rotate(90deg);
}

