/* ========================================
   CABINET HEADER STYLES
   Стили шапки личного кабинета
   ======================================== */

/* === USER AVATAR & AUTH LINK === */

.header-user-avatar,
.header-auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.header-user-avatar {
    background: rgba(41, 96, 135, 0.4);
}

.header-user-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.header-auth-link {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}

.header-help {
    background-image: url("../images/question.svg") !important;
}

.header-home {
    background-image: url("../images/home.svg") !important;
}

/* === HELP TOOLTIP === */

.header-help-wrapper {
    position: relative;
    display: inline-block;
}

.header-help-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 468px;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
                linear-gradient(0deg, rgba(24, 32, 39, 0.9), rgba(24, 32, 39, 0.9));
    border: 1px solid rgba(41, 96, 135, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: white;
}

.header-help-tooltip a {
    color: var(--blue);
    text-decoration: none;
}

.header-help-tooltip a:hover {
    text-decoration: underline;
}

.header-help-wrapper:hover .header-help-tooltip {
    opacity: 1;
    visibility: visible;
}

/* === DISABLED STATE (when help tooltip active) === */

body.help-tooltip-active .btn-dashboard-glass,
body.help-tooltip-active .btn-dashboard-exchange,
body.help-tooltip-active .btn-dashboard-remit,
body.help-tooltip-active .btn-dashboard-template,
body.help-tooltip-active .btn-dashboard-wallet,
body.help-tooltip-active .show-all-link,
body.help-tooltip-active .btn,
body.help-tooltip-active .cabinet-menu li a,
body.help-tooltip-active .list li,
body.help-tooltip-active .asset-item {
    pointer-events: none;
    opacity: 0.5;
}
