﻿/* --- Главное меню ПК --- */
@font-face {
    font-family: 'DaysFronts';
    src: url('/Fronts/DAYS.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.Vertical {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

.TextContainerMenuAdmin {
    font-family: DaysFronts;
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    padding: 10px;
}

.TextMenuUser {
    font-family: DaysFronts;
    margin: 10px 0;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: left;
    word-wrap: break-word;
    width: 100%;
}

    .TextMenuUser:hover {
        background-color: #ffeaea;
        color: #E83939;
    }


.TextMenuUser2 {
    font-family: DaysFronts;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
    margin: 5px 0;
}

    .TextMenuUser2:hover {
        background-color: #ffeaea;
        color: #E83939;
    }
/* Снимаем центрирование */
.HamburgerBtn {
    display: none;
    position: fixed;
    top: 10px;
    left: 20px; /* Отступ слева, подкорректируй, чтобы совпало с меню */
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1101;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

    /* Для примера, если меню ПК занимает минимум 200px слева, 20px отступ - норм */


    .HamburgerBtn div {
        width: 30px;
        height: 4px;
        background-color: white;
        border-radius: 2px;
    }

.SidebarMenu {
    font-family: DaysFronts;
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background-color: #333;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ВАЖНО: выравниваем содержимое по левому краю */
}

    .SidebarMenu.active {
        left: 0;
    }

    .SidebarMenu .TextContainerMenuAdmin {
        font-family: DaysFronts;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        align-items: flex-start; /* ВАЖНО: тоже по левому краю */
    }

    .SidebarMenu .TextMenuUser {
        font-family: DaysFronts;
        margin: 10px 0;
        padding: 10px 15px;
        color: white;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        text-align: left !important; /* Принудительно слева */
        font-size: 1.2rem;
        user-select: none;
        transition: background-color 0.2s ease;
        height: 40px;
        line-height: 40px;
        display: block; /* Обязательно, чтобы не было flex */

        width: 100%; /* Чтобы занимал всю ширину */
    }

        .SidebarMenu .TextMenuUser:hover {
            background-color: #555;
            color: #ffeaea;
        }


/* --- Подложка для закрытия меню --- */
.Overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    z-index: 1099;
}

    .Overlay.active {
        display: block;
    }

/* --- Мобильная адаптация --- */
@media (max-width: 768px) {
    .Vertical {
        display: none !important; /* скрываем меню ПК */
    }

    .HamburgerBtn {
        display: flex;
    }
}
