:root {
    /* Primary Colors */
    --primary-gold: #D4AF37;
    --primary-white: #FFFFFF;
    --dark-text: #222222;
    --light-grey: #F4F4F4;

    /* Status Colors */
    --status-success: #28A745;
    --status-warning: #FFC107;
    --status-error: #DC3545;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-grey);
    color: var(--dark-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

a:hover {
    color: #b5952f;
    /* Darker gold */
}

/* Buttons */
.btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b5952f;
    color: var(--primary-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(212, 175, 55, 0.2);
}

/* Cards & Glassy Effect */
.card-custom {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2rem;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Utilities */
.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
}

.rounded-custom {
    border-radius: 10px !important;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--primary-white);
    min-height: 100vh;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-menu {
    padding: 1rem 0;
}

.nav-link {
    padding: 0.8rem 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.05);
    border-right: 3px solid var(--primary-gold);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--primary-white);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Widgets */
.stat-card {
    background: var(--primary-white);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.bg-gold-light {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.bg-success-light {
    background: rgba(40, 167, 69, 0.1);
    color: var(--status-success);
}

.bg-info-light {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.bg-purple-light {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

/* #tasksTable_wrapper .dt-layout-row{
    padding: 0 20px;
} */

/* Responsive Dashboard */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        height: 100%;
    }

    .dashboard-main-content {
        width: 100%;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .task-details-header > .d-flex{
        flex-direction: column;
    }

    .task-details-header > .d-flex > .d-flex{
        align-items: center;
    }
}

.task-card {
    background: var(--primary-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.task-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.task-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.progress-custom {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    background-color: var(--primary-gold);
}

/* Task Details Styles */
.upload-zone {
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background-color: #f8f9fa !important;
    border-color: var(--primary-gold) !important;
}

.btn-outline-gold {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--primary-white);
}

.bg-warning-light {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.instruction-step .step-number {
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Referral Page Styles */
.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* Leaderboard Styles */
.transform-scale-110 {
    transform: scale(1.1);
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

.bg-brown {
    background-color: #CD7F32;
}

.border-brown {
    border-color: #CD7F32 !important;
}

.text-brown {
    color: #CD7F32;
}