/* OSGLI Light Theme - User Pages
 * Ruangguru-inspired light tokens for user dashboard, buy_exam, analytics, etc.
 * To be used alongside ruangguru-theme.css
 */

/* ---------- Background ---------- */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0, 166, 140, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
}

.main-content {
    position: relative;
    z-index: 1;
}

/* ---------- Navbar overrides ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rg-border, #E5E7EB);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--rg-text, #1A2A44) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: var(--rg-text-secondary, #4B5563) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rg-primary, #00A68C) !important;
    background: var(--rg-primary-light, #E0F7F3);
}

.nav-link.active {
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid var(--rg-border, #E5E7EB);
    padding: 0.35rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234B5563' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Avatar Circle ---------- */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rg-primary, #00A68C), var(--rg-accent-blue, #2563EB));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    border: 2px solid var(--rg-border, #E5E7EB);
    transition: all 0.2s;
    flex-shrink: 0;
}

.avatar-circle:hover {
    border-color: var(--rg-primary, #00A68C);
    box-shadow: 0 0 0 3px var(--rg-primary-light, #E0F7F3);
}

/* ---------- Dropdown ---------- */
.dropdown-menu-dark-custom {
    background: var(--rg-bg-white, #FFFFFF);
    border: 1px solid var(--rg-border, #E5E7EB);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-menu-dark-custom .dropdown-item {
    color: var(--rg-text-secondary, #4B5563);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.dropdown-menu-dark-custom .dropdown-item:hover {
    background: var(--rg-primary-light, #E0F7F3);
    color: var(--rg-primary, #00A68C);
}

.dropdown-menu-dark-custom .dropdown-item.text-danger-custom {
    color: #EF4444;
}

.dropdown-menu-dark-custom .dropdown-item.text-danger-custom:hover {
    background: #FEF2F2;
}

.dropdown-menu-dark-custom .dropdown-divider {
    border-color: var(--rg-border-light, #F3F4F6);
    margin: 0.3rem 0;
}

/* ---------- Glass Card → White Card ---------- */
.glass-card {
    background: var(--rg-bg-white, #FFFFFF);
    border: 1px solid var(--rg-border, #E5E7EB);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- Entrance Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.45s ease forwards;
}

.delay-1 {
    animation-delay: 0.05s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.12s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.19s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.26s;
    opacity: 0;
}

.delay-5 {
    animation-delay: 0.30s;
    opacity: 0;
}

.delay-6 {
    animation-delay: 0.36s;
    opacity: 0;
}

/* ---------- Typography helpers ---------- */
.text-white-50 {
    color: var(--rg-text-muted, #9CA3AF) !important;
}