/**
 * Right Lender - User Profile & Dashboard CSS
 * Styled according to website theme (white + light blue gradient, Poppins font, Bootstrap 5)
 */

:root {
    --rl-primary: #265DF5;
    --rl-primary-hover: #194AD1;
    --rl-primary-light: #EEF3FF;
    --rl-dark: #0F172A;
    --rl-gray: #64748B;
    --rl-border: #E2E8F0;
    --rl-bg-gradient: linear-gradient(135deg, #F8FAFC 0%, #EBF3FE 100%);
    --rl-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-wrapper {
    background: var(--rl-bg-gradient);
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 60px;
}

/* User Header Banner Card */
.dashboard-user-card {
    background: linear-gradient(135deg, #265DF5 0%, #17368E 100%);
    border-radius: 20px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 15px 35px rgba(38, 93, 245, 0.2);
    position: relative;
    overflow: hidden;
}

.dashboard-user-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* Avatar Upload Circle */
.user-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
}

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

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    color: var(--rl-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: var(--rl-primary-light);
}

/* Sidebar Navigation Card */
.dashboard-sidebar-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--rl-border);
    box-shadow: var(--rl-card-shadow);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--rl-dark);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.sidebar-menu-item i {
    font-size: 20px;
    color: var(--rl-gray);
    transition: color 0.25s ease;
}

.sidebar-menu-item:hover {
    background: var(--rl-primary-light);
    color: var(--rl-primary);
}

.sidebar-menu-item:hover i {
    color: var(--rl-primary);
}

.sidebar-menu-item.active {
    background: var(--rl-primary);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(38, 93, 245, 0.25);
}

.sidebar-menu-item.active i {
    color: #FFFFFF;
}

.sidebar-menu-item.logout-item {
    color: #DC2626;
    margin-top: 10px;
    border-top: 1px solid var(--rl-border);
    border-radius: 12px;
}

.sidebar-menu-item.logout-item i {
    color: #DC2626;
}

.sidebar-menu-item.logout-item:hover {
    background: #FEF2F2;
    color: #991B1B;
}

/* Main Dashboard Panel Card */
.dashboard-content-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--rl-border);
    box-shadow: var(--rl-card-shadow);
    min-height: 520px;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* Filter Tabs Pills */
.status-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-pill-btn {
    padding: 8px 18px;
    border-radius: 50px;
    background: #F1F5F9;
    color: var(--rl-gray);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill-btn.active {
    background: var(--rl-primary);
    color: #FFFFFF;
}

/* Application Card Item */
.application-item-card {
    background: #FFFFFF;
    border: 1px solid var(--rl-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.application-item-card:hover {
    border-color: var(--rl-primary);
    box-shadow: 0 8px 24px rgba(38, 93, 245, 0.1);
    transform: translateY(-2px);
}

/* Plan Pricing Card */
.plan-pricing-card {
    border: 2px solid var(--rl-border);
    border-radius: 20px;
    padding: 26px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    position: relative;
}

.plan-pricing-card.featured {
    border-color: var(--rl-primary);
    box-shadow: 0 12px 30px rgba(38, 93, 245, 0.15);
}

.plan-featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--rl-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
}

@media (max-width: 991px) {
    .dashboard-wrapper {
        padding-top: 90px;
    }

    .dashboard-content-card {
        padding: 20px;
    }
}

@media (max-width: 425px) {

    .user-avatar-wrapper {
        position: relative;
        width: 90px;
        height: 55px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        background: #FFFFFF;
    }

    .avatar-edit-btn {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 22px;
        height: 22px;
        background: #FFFFFF;
        color: var(--rl-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }
}