/**
 * Pravé uživatelské menu (slide-in panel)
 */

/* Overlay pozadí */
.user-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.user-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Panel menu */
.user-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 610px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.user-menu.is-active {
    transform: translateX(0);
}

/* Hlavička menu */
.user-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 32px;
    justify-content: flex-end;
    padding-bottom: 0px;
}

.user-menu__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
    position: relative;
    top: -4px;
}

.user-menu__user-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary, #a41e35);
}

.user-menu__user-name {
    font-size: 18px;
    font-weight: 400;
}

.user-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.user-menu__close:hover {
    color: #1f2937;
}

.user-menu__close .icon {
    width: 20px;
    height: 20px;
}

/* Obsah menu */
.user-menu__content {
    flex: 1;
        padding: 34px;
    overflow-y: auto;
}

/* Sekce */
.user-menu__section {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-form-sekce_svetla);
}
#user-menu-potvrdit-zarizeni {
    margin-top: 20px;
    margin-bottom: 20px;
}

.user-menu__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.user-menu__select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-menu__select:focus {
    outline: none;
    border-color: var(--color-primary, #a41e35);
    box-shadow: 0 0 0 3px rgba(164, 30, 53, 0.1);
}


/* Patička menu */
.user-menu__footer {
    padding: 34px;
    padding-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}



/* Responzivita */
@media (max-width: 480px) {
    .user-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .user-menu__footer {
        flex-direction: column;
    }
    
    .user-menu__footer .user-menu__btn {
        width: 100%;
    }
}

#zobrazit_menu {
    width: 40px;
    height: 40px;
    margin-left: 28px;
}
#zobrazit_menu .icon {
    width: 24px;
    height: 24px;
}