/* EASY EARN — Premium Modern Web3 Dark Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* === Core Backgrounds === */
    --bg-primary:   #030508;
    --bg-secondary: #06090e;
    --bg-sidebar:   rgba(10, 15, 26, 0.85);
    --bg-card:      rgba(15, 23, 42, 0.65);
    --bg-navbar:    rgba(3, 5, 8, 0.80);

    /* === Brand Palette (Logo Colors) === */
    --brand-blue:     #0072ff;
    --brand-green:    #7fd624;
    --brand-yellow:   #ffd700;
    --brand-orange:   #ff7200;

    /* === Mapped Theme Variables === */
    --gold-primary:   #0072ff; /* Brand Blue */
    --gold-secondary: #7fd624; /* Brand Green */
    --gold-dark:      #0052d4; /* Dark Blue */
    --gold-light:     #ffd700; /* Yellow */
    --gold-orange:    #ff7200; /* Orange */

    /* === Accent Glows === */
    --blue-glow:      rgba(0, 114, 255, 0.45);
    --green-glow:     rgba(127, 214, 36, 0.35);
    --orange-glow:    rgba(255, 114, 0, 0.35);

    /* === Borders === */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 114, 255, 0.35);

    /* === Status Colors === */
    --accent-emerald: #10b981;
    --accent-rose:    #ef4444;
    --accent-amber:   #ffd700;

    /* === Text === */
    --text-primary:   #f3f4f6;
    --text-muted:     #9ca3af;
    --text-highlight: #ffd700;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════
   GLOBAL RESET & BASE
   ═══════════════════════════════════════════════ */
body {
    font-family: 'Outfit', sans-serif !important;
    background: radial-gradient(circle at 50% 50%, #070d1a 0%, #030508 100%) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #ffffff !important;
}

.wrapper, .main {
    background: transparent !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

/* ═══════════════════════════════════════════════
   FLOATING SIDEBAR DESIGN (Web3 Glass panel)
   ═══════════════════════════════════════════════ */
.sidebar {
    background: var(--bg-sidebar) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid var(--border-color) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7) !important;
    margin: 15px;
    height: calc(100vh - 30px) !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky !important;
        top: 15px !important;
        z-index: 1000 !important;
    }
}

.sidebar-content {
    background: transparent !important;
    height: 100% !important;
    overflow-y: auto !important;
}

.sidebar-user {
    border-bottom: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 1.5rem !important;
    text-align: center;
}

.sidebar-user img {
    max-height: 55px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 10px rgba(0, 114, 255, 0.3)) !important;
    transition: var(--transition);
}

.sidebar-user img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(0, 114, 255, 0.6)) !important;
}

.sidebar-header {
    background: transparent !important;
    color: var(--brand-green) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
    font-weight: 700 !important;
    opacity: 0.85;
}

/* Sidebar Links */
.sidebar-link, a.sidebar-link {
    background: transparent !important;
    color: var(--text-muted) !important;
    transition: var(--transition) !important;
    border-left: 4px solid transparent !important;
    font-weight: 600 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 14px !important;
}

.sidebar-link i, a.sidebar-link i {
    color: #6b7280 !important;
    transition: var(--transition) !important;
}

/* Hover link */
.sidebar-link:hover, .sidebar-item:hover > .sidebar-link {
    color: #ffffff !important;
    background: rgba(0, 114, 255, 0.06) !important;
    border-left-color: var(--brand-green) !important;
}

.sidebar-link:hover i, .sidebar-item:hover > .sidebar-link i {
    color: var(--brand-green) !important;
    transform: scale(1.15) translateX(2px) !important;
}

/* Active link */
.sidebar-item.active { border-left: none !important; }

.sidebar-item.active > .sidebar-link,
.sidebar-item.active > a.sidebar-link {
    color: #ffffff !important;
    background: rgba(0, 114, 255, 0.12) !important;
    border-left-color: var(--brand-blue) !important;
    box-shadow: inset 4px 0 15px rgba(0, 114, 255, 0.08) !important;
}

.sidebar-item.active > .sidebar-link i,
.sidebar-item.active > a.sidebar-link i {
    color: var(--brand-blue) !important;
}

/* Submenus */
.sidebar-dropdown .sidebar-link {
    padding-left: 3.5rem !important;
    border-left: none !important;
}

/* ═══════════════════════════════════════════════
   TOP NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem 1.5rem !important;
    margin: 15px 15px 0 15px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.navbar .hamburger, .navbar .hamburger:before, .navbar .hamburger:after {
    background: #ffffff !important;
}

.navbar .nav-link i {
    color: var(--text-muted) !important;
    transition: var(--transition);
}

.navbar .nav-link i:hover {
    color: var(--brand-blue) !important;
}

.navbar .dropdown-menu {
    background-color: #0c101a !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
}

.navbar .dropdown-item {
    color: var(--text-muted) !important;
    padding: 0.7rem 1.2rem !important;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: rgba(0, 114, 255, 0.08) !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════
   GLASS CARDS (Web3 Glow layout)
   ═══════════════════════════════════════════════ */
.card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

/* Glass card glows */
.card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, rgba(127, 214, 36, 0.2) 60%, rgba(0,0,0,0) 100%);
    filter: blur(12px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover) !important;
    box-shadow: 0 15px 40px rgba(0, 114, 255, 0.2) !important;
}

.card:hover::before {
    transform: scale(1.2);
    filter: blur(10px);
}

.card-title, .card-header {
    background: transparent !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1.5rem !important;
    color: #ffffff !important;
}

.card-body {
    padding: 1.5rem !important;
    z-index: 2;
    position: relative;
}

/* ═══════════════════════════════════════════════
   PREMIUM BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    border-radius: 12px !important;
    transition: var(--transition) !important;
    font-weight: 700 !important;
    padding: 0.65rem 1.5rem !important;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary, .btn-info {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #00c6ff 100%) !important;
    border: none !important;
    color: #030508 !important;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3) !important;
}
.btn-primary:hover, .btn-info:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.55) !important;
    color: #030508 !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--brand-green) 0%, #5ba712 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(127, 214, 36, 0.25) !important;
}
.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(127, 214, 36, 0.5) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--gold-orange) 0%, #d84300 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 114, 0, 0.25) !important;
}
.btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 114, 0, 0.5) !important;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
}
.btn-secondary:hover {
    background-color: rgba(0, 114, 255, 0.1) !important;
    border-color: var(--brand-blue) !important;
}

/* ═══════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════ */
.form-control, .form-select, .input-group-text {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition) !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.25) !important;
}
.form-control::placeholder {
    color: #4b5563 !important;
}

/* ═══════════════════════════════════════════════
   PREMIUM TABLES
   ═══════════════════════════════════════════════ */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    color: #ffffff !important;
}

.table thead th {
    background-color: rgba(10, 15, 26, 0.8) !important;
    color: var(--brand-green) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 1.1rem 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 1.1rem 1.25rem !important;
    vertical-align: middle !important;
    background-color: transparent !important;
    color: var(--text-muted) !important;
    font-size: 14px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.01) !important;
}

.table-hover tbody tr:hover td {
    background-color: rgba(0, 114, 255, 0.06) !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════
   BADGES & STATUS
   ═══════════════════════════════════════════════ */
.badge {
    padding: 0.55em 0.9em !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bg-success, .badge-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
}

.bg-danger, .badge-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid var(--accent-rose) !important;
    color: var(--accent-rose) !important;
}

.bg-warning, .badge-warning {
    background-color: rgba(255, 114, 0, 0.12) !important;
    border: 1px solid var(--gold-orange) !important;
    color: var(--gold-orange) !important;
}

.bg-primary, .badge-primary {
    background-color: rgba(0, 114, 255, 0.12) !important;
    border: 1px solid var(--brand-blue) !important;
    color: #60a5fa !important;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    background: rgba(6, 9, 14, 0.8) !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 1.5rem 0 !important;
    margin-top: 30px;
}

/* ═══════════════════════════════════════════════
   AUTH PAGES STYLE OVERRIDES
   ═══════════════════════════════════════════════ */
.auth-color {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #00c6ff 100%) !important;
    color: #030508 !important;
    font-weight: 800 !important;
}
.auth-color:hover {
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ═══════════════════════════════════════════════
   PROFILE DETAILS SPECIFICS
   ═══════════════════════════════════════════════ */
.profile-info-list {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 10px 20px !important;
}

.profile-info-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05) !important;
    padding: 12px 0 !important;
}

.profile-info-label i {
    color: var(--brand-green) !important;
}

/* ═══════════════════════════════════════════════
   MODAL FIXES
   ═══════════════════════════════════════════════ */
.modal-content {
    background-color: #0c101a !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}

.modal-header, .modal-footer {
    border-color: var(--border-color) !important;
}

/* ═══════════════════════════════════════════════
   DASHBOARD CARDS & METRIC GRAPHICS
   ═══════════════════════════════════════════════ */
.stat {
    background: rgba(0, 114, 255, 0.12) !important;
    color: var(--brand-blue) !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card:nth-child(even) .stat {
    background: rgba(127, 214, 36, 0.12) !important;
    color: var(--brand-green) !important;
}

/* ═══════════════════════════════════════════════
   LANDING PAGE SPECIFIC FIXES FOR VIEWPORT SCROLLING
   ═══════════════════════════════════════════════ */
img {
    max-width: 100%;
    height: auto;
}

.about-img-area {
    max-width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
        overflow: hidden;
    }
    
    .about-img-area {
        padding: 20px !important;
    }
    
    .pwa-banner {
        padding: 20px !important;
    }
    
    .about-content h3 {
        font-size: 24px !important;
    }

    .about-feat-item h4 {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

img[alt="logo"] {
    max-height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Mobile Responsive Sidebar Overrides */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important; /* Fully offscreen */
        margin: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        z-index: 1050 !important;
        border-radius: 0 !important;
        transition: left 0.3s ease-in-out !important;
        overflow-y: auto !important;
        box-shadow: none !important;
    }

    /* Override the toggled class behavior on mobile completely */
    .sidebar.toggled {
        left: -280px !important;
    }

    .sidebar.show-mobile {
        left: 0 !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* Make main content scrollable and not blocked */
    .main {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Sidebar Mobile Backdrop */
.sidebar-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-mobile-backdrop.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
