/* ===== ШАПКА (HEADER) ===== */
.headersh {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.headersh-top {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.headersh-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.headersh-logo .icon {
    font-size: 40px;
}

.headersh-logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    margin: 0;
}

.headersh-logo p {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin: 5px 0 0 0;
}

.usersh-info {
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 30px;
}

.usersh-info span {
    color: rgba(255,255,255,0.9);
}

.usersh-info strong {
    color: white;
    margin: 0 5px;
}

.usersh-info a {
    color: #ffdddd;
    text-decoration: none;
    margin-left: 10px;
    font-size: 13px;
}

.usersh-info a:hover {
    text-decoration: underline;
}

.navsh-bar {
    background: rgba(0,0,0,0.15);
    padding: 12px 25px;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.navsh-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.navsh-link:hover,
.navsh-link.is-active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.timesh-indicator {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-left: auto;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ (☀️/🌙) ===== */
.theme-toggle {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.theme-toggle-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 15px;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* Активная (выбранная) тема */
.theme-toggle-btn.is-active {
    background: rgba(255,255,255,0.35);
}

/* ===== ВЫПАДАЮЩЕЕ АДМИН-МЕНЮ (только для организаторов) ===== */
.navsh-admin {
    position: relative;
    display: inline-block;
}

.navsh-admin-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.navsh-caret {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.9;
}

.navsh-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #0066aa;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 6px;
    z-index: 1000;
}

.navsh-dropdown a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 7px;
    transition: background 0.15s;
}

.navsh-dropdown a:hover,
.navsh-dropdown a.is-active {
    background: rgba(255,255,255,0.22);
}

/* Открытие по hover на десктопе; класс .open — для тача/клика (JS) */
@media (hover: hover) {
    .navsh-admin:hover .navsh-dropdown { display: block; }
}
.navsh-admin.open .navsh-dropdown { display: block; }

/* ===== ГАМБУРГЕР И АДАПТИВ ДЛЯ ТЕЛЕФОНОВ ===== */
.navsh-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
}

.navsh-toggle:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
    .headersh-top { padding: 15px; }

    .navsh-bar {
        padding: 8px 15px;
        flex-direction: column;
        align-items: stretch;
    }

    /* По умолчанию на мобильном меню свернуто (кроме гамбургера) */
    .navsh-bar > .navsh-link,
    .navsh-bar > .navsh-admin,
    .navsh-bar > .timesh-indicator {
        display: none;
    }

    .navsh-toggle { display: inline-block; align-self: flex-end; }

    /* Раскрытое гамбургером меню */
    .navsh-bar.open > .navsh-link,
    .navsh-bar.open > .navsh-admin,
    .navsh-bar.open > .timesh-indicator {
        display: block;
    }
    .navsh-bar.open .navsh-link { width: 100%; text-align: center; }
    .navsh-bar.open .timesh-indicator { text-align: center; margin-left: 0; }

    /* На мобильном дропдаун раскрывается потоком (под кнопкой) */
    .navsh-dropdown {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        margin-top: 6px;
    }
    .navsh-admin.open .navsh-dropdown { display: block; }
}