


.header {
    position: fixed;
    top: 7px;
    left: 7px;
    right: 7px;
    height: 48px;
    padding: 0 7px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(30, 30, 30, 0.00);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.panel-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.center { margin: 0 auto; }

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #c5c5c5;
    font-size: 1.15rem;
    position: relative;
    user-select: none;
}

.text-btn {
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #c5c5c5;
    font-size: 1.15rem;
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.icon-btn:hover, 
.text-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.icon-btn:active,
.text-btn:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.08);
}

.icon-btn.active::after,
.text-btn.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #4cc2ff;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(76, 194, 255, 0.5);

    transform: scaleX(0);
    transform-origin: center;

    animation: expandFromCenter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes expandFromCenter {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.app-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    margin-left: 6px;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.text-btn {
    text-decoration: none;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #c5c5c5;
    font-size: 1.15rem;
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.text-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Контейнер меню */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 6px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.user-menu-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: block;
    padding: 10px 14px;
    color: #c5c5c5;
    text-decoration: none; /* Убираем подчеркивание у пунктов меню */
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.logout-btn {
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff8e8e;
}

