/* ============================================
   SHARED/_LOGINPARTIAL VIEW STYLES
 ============================================ */

.theme-option {
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: var(--transition-fast);
}

    .theme-option:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .theme-option.active {
        background-color: rgba(30, 60, 114, 0.1);
        font-weight: 600;
        border-left: 3px solid var(--color-primary-dark);
    }

    .theme-option small {
        font-size: var(--font-size-xs);
        opacity: 0.8;
    }

/* Theme badge */
.theme-badge-small {
    font-size: 0.65rem;
}

/* Theme select styling */
#themeSelect {
    cursor: pointer;
    transition: var(--transition-all);
    border-color: rgba(0, 0, 0, 0.15);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    font-weight: 500;
}

    #themeSelect:hover {
        border-color: var(--color-primary-dark);
        box-shadow: 0 2px 8px rgba(30, 60, 114, 0.1);
        transform: translateY(-1px);
    }

    #themeSelect:focus {
        border-color: var(--color-primary-dark);
        box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
        transform: translateY(0);
    }

    #themeSelect:active {
        transform: scale(0.98);
    }

    #themeSelect option {
        padding: 8px;
        font-size: var(--font-size-sm);
    }

    #themeSelect optgroup {
        font-weight: 600;
        font-size: var(--font-size-sm);
        color: #6c757d;
        padding: 4px 0;
    }

/* Animate theme select on change */
@keyframes selectPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

#themeSelect.theme-changing {
    animation: selectPulse var(--transition-normal);
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .theme-option:hover,
[data-bs-theme="dark-soft"] .theme-option:hover,
[data-bs-theme="dark-slate"] .theme-option:hover,
[data-bs-theme="dark-midnight"] .theme-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .theme-option.active,
[data-bs-theme="dark-soft"] .theme-option.active,
[data-bs-theme="dark-slate"] .theme-option.active,
[data-bs-theme="dark-midnight"] .theme-option.active {
    background-color: rgba(96, 165, 250, 0.2);
    border-left-color: #60a5fa;
}

[data-bs-theme="dark"] #themeSelect,
[data-bs-theme="dark-soft"] #themeSelect,
[data-bs-theme="dark-slate"] #themeSelect,
[data-bs-theme="dark-midnight"] #themeSelect {
    background-color: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

    [data-bs-theme="dark"] #themeSelect:hover,
    [data-bs-theme="dark-soft"] #themeSelect:hover,
    [data-bs-theme="dark-slate"] #themeSelect:hover,
    [data-bs-theme="dark-midnight"] #themeSelect:hover {
        border-color: #60a5fa;
        box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
    }

    [data-bs-theme="dark"] #themeSelect:focus,
    [data-bs-theme="dark-soft"] #themeSelect:focus,
    [data-bs-theme="dark-slate"] #themeSelect:focus,
    [data-bs-theme="dark-midnight"] #themeSelect:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
    }

.dropdown-header small {
    font-weight: 600;
    letter-spacing: 0.5px;
}

#currentThemeBadge {
    transition: var(--transition-all);
    font-weight: 600;
}

    #currentThemeBadge:hover {
        transform: scale(1.05);
    }

/* User avatars */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--gradient-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-size-sm);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-pill);
    background: var(--gradient-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-size-xl);
    color: white;
    border: 3px solid #f0f0f0;
}

/* Navigation buttons */
.btn-nav-register,
.btn-nav-login {
    border-radius: var(--radius-md);
    transition: var(--transition-all);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.btn-nav-register {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .btn-nav-register:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
    }

.btn-nav-login {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark) !important;
    font-weight: 600;
}

    .btn-nav-login:hover {
        background-color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Navbar nav items alignment */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Enhanced dropdown menu styling */
.dropdown-menu-custom {
    min-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

    .dropdown-menu-custom .dropdown-item {
        padding: 0.6rem var(--spacing-md);
    }

        .dropdown-menu-custom .dropdown-item i {
            width: 20px;
            text-align: center;
        }

    /* Scrollbar for long dropdown */
    .dropdown-menu-custom::-webkit-scrollbar {
        width: 6px;
    }

    .dropdown-menu-custom::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

[data-bs-theme="dark"] .dropdown-menu-custom::-webkit-scrollbar-thumb,
[data-bs-theme="dark-soft"] .dropdown-menu-custom::-webkit-scrollbar-thumb,
[data-bs-theme="dark-slate"] .dropdown-menu-custom::-webkit-scrollbar-thumb,
[data-bs-theme="dark-midnight"] .dropdown-menu-custom::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}