/* /Layout/MainLayout.razor.rz.scp.css */
/* Верхняя панель */

.auth-btn:hover[b-sqfuff29xk] {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

/* Основной контент */
.main-content[b-sqfuff29xk] {

    flex: 1;
}

.auth-btn.logout[b-sqfuff29xk] {
    background-color: #e74c3c;
    /* ярко-красный */
    color: white;
}

.auth-btn.logout:hover[b-sqfuff29xk] {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Основной контейнер */
.app-container[b-sqfuff29xk] {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
    /* фон контента белый */
}


/* Контент справа */
.content-area[b-sqfuff29xk] {
    margin-left: 260px;
    /* отступ равен ширине панели */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Верхняя панель */
.top-bar[b-sqfuff29xk] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.05);
}

.auth-btn[b-sqfuff29xk] {
    background-color: #f1c40f;
    border: none;
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover[b-sqfuff29xk] {
    background-color: #e0b90f;
    transform: translateY(-2px);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .sidebar[b-sqfuff29xk] {
        position: absolute;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active[b-sqfuff29xk] {
        transform: translateX(0);
    }

    .content-area[b-sqfuff29xk] {
        margin-left: 0;
    }
}

.sidebar[b-sqfuff29xk] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    /* рабочая ширина */
    background-color: #d2c3af;
    /* светло-золотистый фон */
    border-right: 2px solid #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.sidebar .logo[b-sqfuff29xk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.sidebar .logo img[b-sqfuff29xk] {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0px 0px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.sidebar .logo img:hover[b-sqfuff29xk] {
    transform: scale(1.05);
}

.sidebar .logo h2[b-sqfuff29xk] {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: black;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Меню */
.menu-buttons[b-sqfuff29xk],
.sidebar ul[b-sqfuff29xk] {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.menu-buttons button[b-sqfuff29xk],
.sidebar ul li a[b-sqfuff29xk] {
    width: 80%;
    background-color: #d2c3af;
    color: black;
    border: 2px solid black;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-buttons button:hover[b-sqfuff29xk],
.menu-buttons button.active[b-sqfuff29xk],
.sidebar ul li a:hover[b-sqfuff29xk],
.sidebar ul li a.active[b-sqfuff29xk] {
    background-color: black;
    color: white;
    transform: scale(1.05);
}

/* --- Мобильная панель --- */
.mobile-menu[b-sqfuff29xk] {
    position: fixed;

    top: 0;
    left: -280px;
    /* изначально спрятано */
    width: 280px;
    height: 100%;
    background-color: #d2c3af;
    /* тот же цвет, что у .sidebar */
    border-right: 2px solid #000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
}

/* Когда меню активно */
.mobile-menu.show[b-sqfuff29xk] {
    left: 0;
}

/* Кнопка закрытия */
.mobile-menu .close-btn[b-sqfuff29xk] {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.mobile-menu .close-btn:hover[b-sqfuff29xk] {
    transform: scale(1.1);
}

/* Кнопки навигации внутри меню */
.mobile-menu button[b-sqfuff29xk] {
    width: 80%;
    background-color: #d2c3af;
    color: black;
    border: 2px solid black;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Times New Roman', serif;
}


.mobile-menu button:hover[b-sqfuff29xk],
.mobile-menu button.active[b-sqfuff29xk] {
    background-color: black;
    color: white;
    transform: scale(1.05);
}


/* Символ в центре кнопки */
.menu-icon[b-sqfuff29xk] {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 28px;
    color: black;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-overlay[b-sqfuff29xk] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 999;
    /* чуть ниже панели */
    display: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show[b-sqfuff29xk] {
    display: block;
    opacity: 1;
}

/* --- Логотип в мобильном меню --- */
.logo-mobile[b-sqfuff29xk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.logo-mobile img[b-sqfuff29xk] {
    width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-mobile img:hover[b-sqfuff29xk] {
    transform: scale(1.05);
}

.logo-mobile h2[b-sqfuff29xk] {
    font-family: 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 600;
    color: black;
    margin-top: 12px;
}

.mobile-menu-button[b-sqfuff29xk] {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6d7b8, #c7b692);
    border: 2px solid black;
    color: black;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 3000;
    /* выше карточек, но не ломает остальную верстку */
}

.mobile-menu-button:hover[b-sqfuff29xk] {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.35);
}

.mobile-menu-button[b-sqfuff29xk]::before {
    content: "☰";
    position: relative;
    top: -3px;
    /* 🔼 немного выше центра */
    font-size: 30px;
    color: black;
    font-weight: bold;
    line-height: 1;
}

/* --- Скрываем на больших экранах --- */
@media (min-width: 768px) {
    .mobile-menu-button[b-sqfuff29xk] {
        display: none;
    }

    .mobile-menu[b-sqfuff29xk] {
        display: none;
    }
}
