/*!
 * Theme Name: Default
 * Package : DashLite
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
 * Version	 :	1.0.0
 * Updated	 :	07.23.2020
**/


/* Enhanced Dashboard Styles */
.welcome-text {
    font-weight: 400;
    color: #8094ae;
}

/* .user-name {
    font-weight: 600;
    color: #364a63;
} */

/* Quick Access Styles */
.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid #e5e9f2;
}

.quick-access-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(116, 129, 141, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
}

.quick-access-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.quick-access-icon em {
    font-size: 1.75rem;
    color: white;
}

.quick-access-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #364a63;
    text-align: center;
}

.quick-access-item:hover .quick-access-icon {
    transform: scale(1.1);
}

.quick-access-item:hover .quick-access-text {
    color: #6366f1;
}

/* Footer Navigation Styles */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-top: 1px solid #e5e9f2;
    box-shadow: 0 -2px 16px rgba(116, 129, 141, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-nav-inner {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 0.75rem 1rem; */
}

.footer-nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-item {
    flex: 1;
    text-align: center;
}

.footer-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav-link:hover {
    background: rgba(99, 102, 241, 0.05);
    text-decoration: none;
}

.footer-nav-icon {
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.footer-nav-icon em {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8094ae;
    transition: all 0.3s ease;
}

.footer-nav-item.active .footer-nav-link {
    background: rgba(99, 102, 241, 0.1);
}

.footer-nav-item.active .footer-nav-text {
    color: #6366f1;
    font-weight: 600;
}

.footer-nav-item.active .footer-nav-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
}

/* Color variations for footer icons */
.footer-nav-link:hover .footer-nav-text {
    color: inherit;
}

/* Add bottom padding to body when footer nav is present */
body {
    padding-bottom: 80px;
}

/* Hide footer nav on larger screens */
@media (min-width: 992px) {
    .footer-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* Gradient Cards */
.gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

/* Enhanced Card Styling */
.card-bordered {
    border: 1px solid #e5e9f2;
    box-shadow: 0 2px 8px rgba(116, 129, 141, 0.1);
    transition: all 0.3s ease;
}

.card-bordered:hover {
    box-shadow: 0 4px 16px rgba(116, 129, 141, 0.15);
    transform: translateY(-2px);
}

/* Amount Display */
.amount {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.amount-sm {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Card Icons */
.card-hint-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

/* Enhanced Form Controls */
.form-clip {
    position: relative;
}

.btn-clip {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    z-index: 2;
}

/* Referral Section */
.referral-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.referral-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(116, 129, 141, 0.1);
}

.referral-stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.referral-stat-item .label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Button Enhancements */
.btn-hover-primary:hover {
    background-color: #6366f1;
    border-color: #6366f1;
    color: white;
}

.copyBoard {
    cursor: pointer;
    transition: all 0.3s ease;
}

.copyBoard:hover {
    /* transform: translateY(-1px); */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .amount {
        font-size: 1.5rem;
    }

    .referral-section {
        padding: 1rem;
    }

    .referral-stats {
        margin-top: 1rem;
        flex-direction: row;
        justify-content: space-around;
        padding: 1.5rem 1rem;
    }

    .referral-stat-item .number {
        font-size: 1.5rem;
    }

    .quick-access-item {
        padding: 1rem 0.5rem;
    }

    .quick-access-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .quick-access-icon em {
        font-size: 1.5rem;
    }

    .quick-access-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer-nav-inner {
        /* padding: 0.5rem; */
    }

    .footer-nav-icon em {
        font-size: 1.25rem;
    }

    .footer-nav-text {
        font-size: 0.7rem;
    }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.3s ease-in-out;
}

/* Loading State */
/* .btn.loading {
    position: relative;
    color: transparent;
} */

/* .btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
} */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Navigation Hide Animation */
.footer-nav-hidden {
    transform: translateY(100%);
}

.footer-nav {
    transition: transform 0.3s ease-in-out;
}

/* Quick Access Loading State */
.quick-access-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.quick-access-item.loading .quick-access-icon {
    animation: spin 1s linear infinite;
}


    /* Hide file input */
    #mediaFile {
        position: absolute;
        top: -1000px;
        opacity: 0;
    }

    /* Profile Card Styling */
    .profile-card {
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: none;
        overflow: hidden;
        background: #fff;
        min-height: 600px;
    }

    /* Sidebar Styling */
    .profile-sidebar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 3rem 2rem;
        height: 100%;
        min-height: 600px;
        position: relative;
    }

    .profile-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

    /* Content Area */
    .profile-content {
        padding: 3rem;
        background: #fff;
        height: 100%;
    }

    /* Avatar Styling */
    .profile-avatar-section {
        position: relative;
        z-index: 2;
        margin-bottom: 2rem;
        text-align: center;
    }

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

    #profile {
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        background-size: cover;
        background-position: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 4px solid rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
        margin: 0 auto;
    }

    #profile:hover {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .avatar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        color: white;
        font-size: 0.85rem;
    }

    #profile:hover .avatar-overlay {
        opacity: 1;
    }

    #profile.hasImage .avatar-overlay {
        opacity: 0;
    }

    #profile.hasImage:hover .avatar-overlay {
        opacity: 1;
    }

    .avatar-overlay i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .avatar-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
    }

    #profile.hasImage + .avatar-label {
        display: none;
    }

    .avatar-label i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    /* Profile Info in Sidebar */
    .profile-info {
        position: relative;
        z-index: 2;
        text-align: center;
        margin-bottom: 2rem;
    }

    .profile-name {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .profile-username {
        opacity: 0.9;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .profile-email {
        opacity: 0.8;
        font-size: 0.9rem;
        word-break: break-word;
    }

    /* Profile Stats */
    .profile-stats {
        position: relative;
        z-index: 2;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .stat-value {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        word-break: break-word;
    }

    .stat-label {
        font-size: 0.85rem;
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Form Body */
    .profile-body {
        padding: 2rem 0;
    }

    .section-title {
        color: #333;
        font-weight: 600;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f1f3f4;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .section-title i {
        color: #667eea;
        font-size: 1.1rem;
    }

    .section-divider {
        margin: 2.5rem 0;
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, #ddd, transparent);
    }

    /* Form Groups */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        border-radius: 12px;
        border: 2px solid #e5e7eb;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background: #fff;
    }

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .form-control:disabled {
        background: #f9fafb;
        color: #6b7280;
    }

    .form-control-wrap {
        position: relative;
    }

    .form-control-wrap .form-icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 1.1rem;
    }

    .form-control-wrap .form-control {
        padding-right: 3rem;
    }

    /* Submit Button */
    .form-actions {
        text-align: center;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e5e7eb;
    }



    .btn-primary:hover {
        /* transform: translateY(-2px); */
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    }

    .btn-primary i {
        margin-right: 0.5rem;
    }

    /* Back Button */
    .back-to {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        background: rgba(102, 126, 234, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

    .back-to:hover {
        background: rgba(102, 126, 234, 0.15);
        transform: translateX(-3px);
    }

    /* Drag and Drop Effects */
    #profile.dragging {
        animation: pulse 1s infinite;
        border-color: #667eea;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

    /* Responsive */
    @media (max-width: 992px) {
        .profile-sidebar {
            min-height: auto;
            padding: 2rem 1rem;
        }

        .profile-content {
            padding: 2rem 1rem;
        }

        #profile {
            width: 200px;
            height: 200px;
        }

        .profile-name {
            font-size: 1.3rem;
        }

        .profile-stats {
            display: flex;
            justify-content: space-around;
            padding-top: 1.5rem;
        }

        .stat-item {
            margin-bottom: 0;
        }
    }

    @media (max-width: 768px) {
        .profile-sidebar {
            padding: 1.5rem;
        }

        .profile-content {
            padding: 1.5rem;
        }

        .form-actions {
            margin-top: 1.5rem;
            padding-top: 1rem;
        }
    }

