* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #0f1b3d 25%, #1a1f3a 50%, #0d1529 75%, #050814 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8eaf6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(29, 78, 216, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    color: #cbd5e1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.7;
    letter-spacing: 0.02em;
    margin-top: 2rem;
    opacity: 0.9;
}

.btn-get-started {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-get-started:hover::before {
    left: 100%;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
}

.btn-get-started:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .subtitle {
        font-size: 1.15rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1::after {
        width: 60px;
    }
    
    .btn-get-started {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        margin-top: 2rem;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    min-height: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
}

.login-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

.login-form {
    margin-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-group input:disabled,
.form-group input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(59, 130, 246, 0.15);
    color: #94a3b8;
}

.form-group input:disabled::placeholder {
    color: #475569;
}

.checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(59, 130, 246, 0.15);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.form-group input#invitation_code {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(30, 27, 75, 0.6);
}

.invitation-message {
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
    color: #fb923c;
}

.message-orange {
    color: #fb923c;
}

.message-red {
    color: #ef4444;
}

.message-green {
    color: #22c55e;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    text-align: center;
}

.form-group input#invitation_code:focus {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(30, 27, 75, 0.8);
}

.acknowledgment-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 1rem 0 1.5rem 0;
    text-align: center;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: start;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    margin-top: calc((1.5em - 16px) / 2);
    cursor: pointer;
    appearance: none;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    vertical-align: baseline;
}

.checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.6);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-label span {
    flex: 1;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.register-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    display: block;
}

.register-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.back-home {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #cbd5e1;
}

@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .login-box h2 {
        font-size: 1.75rem;
    }
}

/* Dashboard Styles */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #e8eaf6;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.sidebar-username {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    color: #cbd5e1;
    padding: 0;
    display: inline-block;
    width: 100%;
}

.sidebar-balance {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #94a3b8;
}

.balance-label-text {
    color: #94a3b8;
    margin-right: 0.25rem;
}

.balance-amount-text {
    font-weight: 600;
}

.balance-amount-text.balance-positive {
    color: #22c55e;
}

.balance-amount-text.balance-zero {
    color: #fbbf24;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.nav-item-active {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #93c5fd !important;
    border-left: 2px solid rgba(59, 130, 246, 0.5) !important;
    font-weight: 600 !important;
}

.nav-item-active:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #bfdbfe !important;
    transform: translateX(0) !important;
}

.nav-item-active .nav-icon {
    opacity: 1;
}

.nav-item-logout {
    color: #ef4444;
    margin-top: auto;
    margin-bottom: 1rem;
}

.nav-item-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #0f1b3d 25%, #1a1f3a 50%, #0d1529 75%, #050814 100%);
    background-attachment: fixed;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }

    .content-wrapper h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }

    .main-content {
        padding: 1rem;
        padding-top: 4rem;
    }

    .content-wrapper h1 {
        font-size: 2rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }
}

/* Admin Styles */
.users-table-container {
    margin-top: 2rem;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8eaf6;
}

.users-table thead {
    background: rgba(59, 130, 246, 0.1);
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    color: #e8eaf6;
}

.users-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-form-container {
    margin-top: 2rem;
    max-width: 600px;
}

.admin-form {
    background: rgba(15, 23, 42, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #e8eaf6;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-form select.form-control {
    cursor: pointer;
}

.admin-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.admin-form .btn-login {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .users-table-container {
        padding: 0.5rem;
    }

    .users-table {
        font-size: 0.85rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .users-table {
        font-size: 0.8rem;
    }

    .users-table th,
    .users-table td {
        padding: 0.5rem 0.25rem;
    }

    .admin-form {
        padding: 1rem;
    }
}

/* Tasks Page Styles */
.tasks-count {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin: 1.5rem 0;
    font-weight: 500;
}

.tasks-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.tasks-empty-text {
    font-size: 1.1rem;
}

/* Task Statistics */
.tasks-statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.stat-card-available {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.stat-card-available:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
}

.stat-card-processing {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.stat-card-processing:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.stat-card-abandoned {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

.stat-card-abandoned:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
}

.stat-card-completed {
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(100, 116, 139, 0.1) 100%);
}

.stat-card-completed:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(147, 51, 234, 0.18) 100%);
}

.stat-card-withdrawn {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.stat-card-withdrawn:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(147, 51, 234, 0.18) 100%);
}

.stat-card-total-earned {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.stat-card-total-earned:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(147, 51, 234, 0.18) 100%);
}

.stat-card-withdrawn {
    border-color: rgba(254, 240, 138, 0.3);
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.1) 0%, rgba(253, 224, 71, 0.1) 100%);
}

.stat-card-withdrawn:hover {
    border-color: rgba(254, 240, 138, 0.5);
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.18) 0%, rgba(253, 224, 71, 0.18) 100%);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.task-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.task-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.task-type-voice {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.task-type-photo {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.task-type-video {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.task-type-custom {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.task-status {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.task-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-task-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-failed {
    text-align: center;
    padding: 1rem;
    color: #f87171;
    font-weight: 600;
}

.task-declined-actions {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
}

.task-declined-message {
    color: #fcd34d;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.task-abandoned-actions {
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
}

.task-abandoned-message {
    color: #f87171;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.task-action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-try-again,
.btn-abandon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-try-again {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-try-again:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-abandon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-abandon:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1) 0%, rgba(220, 38, 38, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-reactivate-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-reactivate-user:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.task-status-false {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.task-status-processing {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.task-status-true {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.task-status-declined {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.task-status-abandoned,
.task-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-description {
    margin: 1rem 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.task-description p {
    margin: 0;
}

.task-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.btn-submit-task {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-submit-task:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.task-processing,
.task-completed {
    text-align: center;
    padding: 0.75rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(135deg, #0a0e27 0%, #0f1b3d 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h2 {
    margin: 0;
    color: #e8eaf6;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.balance-display {
    margin-right: 0.5rem;
}

.btn-edit-balance {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.btn-edit-balance:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-cancel {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-cancel:hover {
    background: rgba(100, 116, 139, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.choice-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.choice-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.choice-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.7);
    color: #60a5fa;
}

.voice-recorder {
    margin-top: 0.5rem;
}

.btn-record {
    padding: 0.75rem 1.5rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: #c084fc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-record:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .tasks-statistics {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .task-card {
        padding: 1rem;
    }

    .choice-buttons {
        flex-direction: column;
    }
}

/* Admin Tasks Page Styles */
.nav-item-bold {
    font-weight: 700 !important;
}

.nav-new-badge {
    color: #4ade80;
    font-weight: bold;
    margin-left: 0.25rem;
}

.admin-filters {
    margin: 2rem 0;
    background: rgba(15, 23, 42, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.filters-form {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #e8eaf6;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-filter,
.btn-reset {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.btn-filter {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-filter:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
}

.btn-reset {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-reset:hover {
    background: rgba(100, 116, 139, 0.3);
}

.admin-tasks-container {
    margin-top: 2rem;
}

.admin-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.admin-task-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Ensure minimum height for consistency */
    overflow: hidden; /* Prevent content from escaping */
    min-width: 0; /* Allow flex items to shrink below content size */
}

.admin-task-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-task-card[data-status="processing"] {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
    order: -1; /* Processing tasks first */
}

.admin-task-card[data-status="true"] {
    border-color: rgba(34, 197, 94, 0.3);
}

.admin-task-card[data-status="false"] {
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-task-card[data-status="declined"] {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.05);
}

.admin-task-card[data-status="abandoned"],
.admin-task-card[data-status="failed"] {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.admin-task-card:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.admin-task-header,
.admin-task-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.admin-task-info {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-task-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* When admin-task-type is used directly on a span (badge), style it as a badge */
span.admin-task-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-task-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-task-type-voice,
.admin-task-type-badge.admin-task-type-voice {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.admin-task-type-photo,
.admin-task-type-badge.admin-task-type-photo {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin-task-type-video,
.admin-task-type-badge.admin-task-type-video {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.admin-task-type-custom,
.admin-task-type-badge.admin-task-type-custom {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-task-status {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-task-status-false {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.admin-task-status-processing {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.admin-task-status-true {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.admin-task-status-declined {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.admin-task-status-abandoned,
.admin-task-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-task-user {
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-task-user strong {
    color: #cbd5e1;
}

.admin-task-description {
    margin: 1rem 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.admin-task-description p {
    margin: 0;
}

.admin-task-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.85rem;
    color: #94a3b8;
}

.withdrawal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.withdrawal-amount-large {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    letter-spacing: -0.5px;
}

.admin-task-header .admin-task-meta {
    margin-top: 0;
    padding-top: 0.75rem;
    border-top: none;
}

.admin-task-actions {
    margin-top: auto; /* Push to bottom */
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between; /* One on left, one on right */
    align-items: center;
    min-width: 0; /* Allow flex container to shrink */
    width: 100%; /* Ensure full width */
}

.inline-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* Prevent form from shrinking */
}

.btn-view-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-view-file:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-approve,
.btn-decline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 1; /* Allow buttons to shrink if needed */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 0; /* Allow flex items to shrink */
    max-width: 100%; /* Prevent overflow */
}

.btn-approve {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-approve:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-decline {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-decline:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1) 0%, rgba(220, 38, 38, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-reactivate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-reactivate:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Media Preview Styles */
.admin-task-media {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.media-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Withdrawal Page Styles */
.withdrawal-form-card,
.withdrawal-pending-card,
.withdrawal-history-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.withdrawal-form-card h2,
.withdrawal-pending-card h2,
.withdrawal-history-card h2 {
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-note {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.form-control option {
    background: #1e293b;
    color: #f1f5f9;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.form-hint {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.pending-details {
    color: #cbd5e1;
    line-height: 1.8;
}

.pending-details p {
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.status-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.withdrawal-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.withdrawal-table {
    width: 100%;
    border-collapse: collapse;
    color: #cbd5e1;
}

.withdrawal-table thead {
    background: rgba(15, 23, 42, 0.6);
}

.withdrawal-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdrawal-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.withdrawal-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.4);
}

.payment-details-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.reason-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reason-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.withdrawal-details {
    color: #cbd5e1;
    line-height: 1.8;
}

.withdrawal-details p {
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.withdrawal-details strong {
    color: #e2e8f0;
}

.admin-filter-section {
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.btn-filter {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    transform: translateY(-1px);
}

.btn-reset {
    padding: 0.5rem 1rem;
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(100, 116, 139, 0.3);
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .withdrawal-form-card,
    .withdrawal-pending-card,
    .withdrawal-history-card {
        padding: 1.5rem;
    }
    
    .withdrawal-table {
        font-size: 0.85rem;
    }
    
    .withdrawal-table th,
    .withdrawal-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
}

.media-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.media-preview video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}

.media-preview audio {
    width: 100%;
    padding: 1rem;
}

.media-preview.media-file {
    padding: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .admin-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-task-card {
        padding: 1rem;
        min-height: auto;
    }
    
    .admin-task-actions {
        gap: 0.5rem;
    }
    
    .btn-approve,
    .btn-decline {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        gap: 0.375rem;
    }
    
    .withdrawal-amount-large {
        font-size: 1.5rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .admin-task-card {
        padding: 0.75rem;
    }
    
    .btn-approve,
    .btn-decline {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .withdrawal-amount-large {
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Dashboard Styles */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    transition: all 0.3s ease;
}

.dashboard-stat-card.has-available-tasks {
    border: 2px solid rgba(251, 146, 60, 0.6);
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4);
    animation: pulse-orange 2s ease-in-out infinite;
}

.hero-content {
    flex: 1;
    min-width: 250px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin: 0;
}

.hero-balance {
    text-align: right;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-width: 200px;
}

.balance-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #22c55e;
    line-height: 1;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-icon-large {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-card-title {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card-description {
    font-size: 0.85rem;
    color: #64748b;
}

.stat-card-earnings {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
}

.stat-card-tasks {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.stat-card-completed {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.stat-card-withdrawals {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.dashboard-section {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateX(5px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.quick-action-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.quick-action-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
}

.quick-action-arrow {
    font-size: 1.5rem;
    color: #64748b;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    color: #3b82f6;
    transform: translateX(5px);
}

.quick-action-card.has-available-tasks {
    border: 2px solid rgba(251, 146, 60, 0.6);
    box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4);
    animation: pulse-orange 2s ease-in-out infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 146, 60, 0);
    }
}

.dashboard-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.activity-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
}

.activity-icon-pending {
    background: rgba(251, 191, 36, 0.1);
}

.activity-icon-completed,
.activity-icon-paid {
    background: rgba(34, 197, 94, 0.1);
}

.activity-icon-failed {
    background: rgba(239, 68, 68, 0.1);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.activity-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-status.status-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.activity-status.status-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.activity-status.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.activity-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .hero-balance {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-activity-grid {
        grid-template-columns: 1fr;
    }
}

