/* Улучшения для шапки сайта */
.top-header, .header-top {
    padding: 10px 0;
}

.user-info__right {
    align-items: center;
}

/* Стилизация для главного навигационного меню */
.header .dropdown--profile .dropdown-toggle {
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .dropdown--profile .dropdown-toggle::after {
    display: none;
}

.header .header-action-btn {
    margin: 0 5px;
}

/* Стилизация для выпадающего меню */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 10px 0;
}

.dropdown-menu .dropdown-link {
    transition: all 0.3s ease;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.dropdown-menu .dropdown-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Стили для блока с балансом */
/* Для верхнего заголовка (темный фон) */
.top-header .balance-display {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.top-header .balance-display:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.top-header .balance-display .text-white {
    color: #fff !important;
}

/* Кнопки в балансе верхнего хедера */
.btn-header-action {
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.btn-header-action:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Для главного заголовка (светлый фон) */
.header-top .balance-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-top .balance-display:hover {
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.header-top .balance-display .text-white {
    color: #7367f0 !important;
}

.header-top .balance-display .btn-group-sm .btn-outline-light,
.btn-outline-purple {
    border-color: #7367f0;
    color: #7367f0;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-top .balance-display .btn-group-sm .btn-outline-light:hover {
    background-color: #7367f0;
    color: white;
    transform: translateY(-1px);
}

/* Кнопки в балансе главного хедера */
.btn-header-purple {
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #fff !important;
    background-color: #7367f0 !important;
    border-color: #6355eb !important;
}

.btn-header-purple:hover {
    background-color: #5e50e9 !important;
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(115, 103, 240, 0.3);
}

/* Стили для кнопок действий */
.header-action-btn {
    position: relative;
}

/* Сообщения */
/* Для темного заголовка */
.top-header .notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    height: 40px;
    width: 40px;
}

.top-header .notification-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Для светлого заголовка */
.header-top .notification-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #7367f0;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
    height: 40px;
    width: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top .notification-link:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.notification-link .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-link .badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5555;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Фото профиля */
.user-info-user .user-profile-icon {
    padding: 0;
    margin-left: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info-user .user-profile-icon:hover {
    transform: translateY(-2px);
}

/* Добавляем только декоративные элементы, не трогаем размеры */
.user-profile {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-profile:hover {
    border-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Выпадающее меню профиля */
.dropdown-header {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #7367f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    transition: all 0.3s ease;
    transform-origin: top right;
}

.user-info-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: -1;
}

.user-info-dropdown__item {
    list-style: none;
    margin: 2px 0;
}

.user-info-dropdown__link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-info-dropdown__link:hover {
    background-color: #f8f9fa;
    color: #7367f0;
}

.user-info-dropdown__link .icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #7367f0;
    margin-right: 10px;
    background-color: rgba(115, 103, 240, 0.1);
    border-radius: 6px;
}

.user-info-dropdown__link .text {
    font-size: 14px;
    font-weight: 500;
}

/* Разделитель в меню */
.user-info-dropdown .dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

/* Адаптивность */
@media (max-width: 767px) {
    .balance-display-mobile {
        display: block !important;
        margin-top: 10px;
        text-align: center;
    }
    
    .notification-link,
    .user-profile {
        height: 36px;
        width: 36px;
    }
    
    .user-info-dropdown {
        right: -70px;
    }
    
    .user-info-dropdown::before {
        right: 80px;
    }
}

/* JavaScript для дропдауна */
.user-profile-icon.active + .user-info-dropdown {
    display: block !important;
}
