/* Simply Earn Money - Custom Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(20, 26, 43, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.25);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.25);
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Bootstrap 5 Overrides to force premium dark mode styling */
    --bs-body-bg: var(--bg-dark);
    --bs-body-color: var(--text-main);
    --bs-body-color-rgb: 248, 250, 252;
    --bs-heading-color: var(--text-main);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--secondary);
    --bs-border-color: var(--border-color);
    
    /* Table native overrides */
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-color: var(--text-main);
    --bs-table-active-color: var(--text-main);
    --bs-table-hover-color: var(--text-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Global Typography & Legibility Overrides */
.text-muted {
    color: var(--text-muted) !important;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-nav {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1030; /* Position above sidebar on desktop */
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Accent Color */
.text-accent {
    color: var(--accent) !important;
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: #fff !important;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text-main) !important;
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
    color: #fff !important;
}

/* Form inputs */
.form-control-custom {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control-custom::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
    outline: none !important;
    color: var(--text-main) !important;
}

.form-control-custom option {
    background-color: #121824 !important;
    color: var(--text-main) !important;
}

/* Custom cards */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Landing Page Section */
.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
}

.pricing-card {
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* Auth Pages Card */
.auth-card {
    max-width: 480px;
    width: 100%;
    margin: 5% auto;
}

/* Tables styling */
.table-custom {
    color: var(--text-main) !important;
}

.table-custom th,
.table-custom td,
.table-custom tr,
.table-custom tbody,
.table-custom thead {
    border-color: var(--glass-border) !important;
}

.table-custom > :not(caption) > * > * {
    color: var(--text-main) !important;
    background: transparent !important;
}

.table-custom th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
    border-bottom: 2px solid var(--glass-border) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.table-custom td {
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 16px 12px;
    vertical-align: middle;
}

/* Sidebar Dashboard Navigation */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 90px;
    width: 260px;
    border-right: 1px solid var(--glass-border);
    background: rgba(11, 15, 25, 0.95);
    z-index: 1020;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebarClose {
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

#sidebarClose:hover {
    color: #fff !important;
    transform: scale(1.15);
}

.main-content {
    margin-left: 260px;
    padding-top: 100px;
    padding-bottom: 40px;
}

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

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

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        padding-top: 35px;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }
    .main-content {
        margin-left: 0;
        padding-top: 90px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link-custom i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: #fff !important;
    background: var(--glass-bg);
    border-left-color: var(--primary);
}

/* Nav Tabs styling */
.nav-tabs {
    border-bottom: 1px solid var(--glass-border) !important;
}

.nav-tabs .nav-link {
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    padding: 10px 20px !important;
}

.nav-tabs .nav-link:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: var(--glass-border) !important;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
}

/* Pagination styling */
.page-link {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--glass-border) !important;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.01) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--glass-border) !important;
}

/* Status badges */
.badge-active {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-gfx {
    animation: float 6s ease-in-out infinite;
}

/* Custom Alert */
.custom-alert {
    border-radius: 12px;
    border: 1px solid;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.custom-alert .btn-close {
    background: none !important;
    border: none !important;
    color: var(--text-main) !important;
    opacity: 0.8;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 !important;
    margin-top: -2px;
}

.custom-alert .btn-close:hover {
    opacity: 1;
}

.custom-alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.custom-alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.panel-highlight {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* File Input Button Styling */
.form-control-custom::file-selector-button {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    padding: 0.375rem 0.75rem;
    margin-right: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control-custom::file-selector-button:hover {
    opacity: 0.9;
}

/* Hide default number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Redesign Specific Styles */
.demo-badge {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px dashed rgba(245, 158, 11, 0.4) !important;
}

.participation-card {
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.participation-card.active-session {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.1);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: rgba(16, 185, 129, 0.4); }
    50% { border-color: rgba(16, 185, 129, 1); }
    100% { border-color: rgba(16, 185, 129, 0.4); }
}

