/* Questa Modern Dashboard CSS - Clean & Professional */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2937;
}

/* Modern Dashboard Base */
.modern-dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Modern Navigation */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #1f2937;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    min-width: 140px;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.balance-icon {
    font-size: 1rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.balance-label {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.balance-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.nav-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4b5563;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    width: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.profile-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #4b5563;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .balance-card {
        display: none;
    }

    .profile-menu {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-action-btn {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.mobile-menu {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 320px;
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.mobile-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #4b5563;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-menu-item:hover {
    background: #f8fafc;
}

.mobile-menu-item.logout-item {
    color: #ef4444;
}

.mobile-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

/* Dashboard Content */
.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 70px);
}

.tab-content-container {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header-content {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 120px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.profile-email {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

.profile-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

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

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

.status-pending-immutable {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-locked {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.status-badge.status-available {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.status-unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-complete {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-disabled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card.balance-card-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.stat-card.balance-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.stat-card.balance-card-modern .stat-label,
.stat-card.balance-card-modern .stat-content h3 {
    color: #6b7280;
    text-align: center;
}

.stat-card.balance-card-modern .stat-value,
.stat-card.balance-card-modern .stat-content p {
    color: #1f2937;
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.stat-card.balance-card-modern .stat-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.stat-label,
.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.stat-value,
.stat-content p {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.balance-large {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* Tasks Section */
.tasks-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modern Task Card Design */
.task-card-modern {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    position: relative;
}

.task-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.task-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.task-card-modern:hover::before {
    transform: scaleX(1);
}

.task-card-header {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.task-card-header:has(.task-banner) {
    padding: 0;
    background: none;
}

.task-card-header:has(.task-banner) .task-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-hexagon-icon {
    width: 60px;
    height: 60px;
    position: relative;
    background: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e293b;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.task-status-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.task-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.task-card-modern:hover .task-banner {
    transform: scale(1.05);
}

.task-status-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.task-status-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.task-status-badge i {
    font-size: 0.875rem;
}

.task-requirement-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-difficulty-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-difficulty-badge i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.task-deadline-timer {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

.task-deadline-timer i {
    font-size: 0.75rem;
}

.task-deadline-timer.expired {
    background: rgba(107, 114, 128, 0.9);
    animation: none;
}

.task-deadline-timer.warning {
    background: rgba(245, 158, 11, 0.9);
    animation: pulse 1s infinite;
}

.task-deadline-timer.critical {
    background: rgba(239, 68, 68, 0.9);
    animation: pulse 0.5s infinite;
}

.status-expired {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.task-card-modern.expired {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.task-card-modern.rejected {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.task-card-modern.rejected:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Modern Authentication Pages */
.modern-auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.modern-auth-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.auth-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.auth-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.auth-brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
}

.modern-auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.modern-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-logo {
    margin-bottom: 1rem;
}

.auth-card-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.auth-card-title-section {
    margin-top: 1rem;
}

.auth-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.auth-card-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
}

.auth-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modern-google-btn {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modern-google-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-google-btn i {
    font-size: 1.25rem;
    color: #4285f4;
}

.modern-auth-divider {
    position: relative;
    text-align: center;
    margin: 0.5rem 0;
}

.modern-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.modern-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1rem;
    z-index: 1;
}

.modern-form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
}

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

.modern-form-input::placeholder {
    color: #9ca3af;
}

.modern-password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.modern-password-toggle:hover {
    color: #6b7280;
}

.modern-error-message {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 0.25rem;
    display: none;
}

.modern-error-message.show {
    display: block;
}

.modern-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.modern-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.modern-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-checkbox-container:hover .modern-checkmark {
    border-color: #667eea;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.modern-checkbox-container input[type="checkbox"]:focus+.modern-checkmark {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.modern-checkbox-container input[type="checkbox"]:checked+.modern-checkmark {
    background: #667eea;
    border-color: #667eea;
}

.modern-checkbox-container input[type="checkbox"]:checked+.modern-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modern-checkbox-text {
    color: #6b7280;
    font-weight: 400;
}

.modern-terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.modern-checkbox-container.error .modern-checkmark {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: checkboxErrorPulse 0.5s ease-in-out;
}

.modern-checkbox-container.error {
    color: #ef4444;
}

.modern-checkbox-container.error .modern-checkbox-text {
    color: #ef4444;
    font-weight: 500;
}

@keyframes checkboxErrorPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.modern-terms-link:hover {
    text-decoration: underline;
}

.modern-form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modern-primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.modern-primary-btn:active {
    transform: translateY(0);
}

.modern-secondary-btn {
    width: 100%;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-secondary-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
}

.modern-primary-btn i,
.modern-secondary-btn i {
    font-size: 1rem;
}

/* Responsive Design for Modern Auth */
@media (max-width: 640px) {
    .modern-auth-container {
        padding: 100px 16px 20px;
    }

    .modern-auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .auth-card-title {
        font-size: 1.75rem;
    }

    .auth-card-subtitle {
        font-size: 0.875rem;
    }

    .modern-form-actions {
        gap: 0.75rem;
    }

    .auth-nav-container {
        padding: 0 1rem;
    }

    .auth-brand-name {
        font-size: 1.25rem;
    }

    .auth-brand-subtitle {
        font-size: 0.625rem;
    }
}

.task-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.task-title-section {
    flex: 1;
}

.task-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.task-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.task-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.task-reward i {
    color: #059669;
    font-size: 16px;
}

.reward-amount {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    margin: 0;
}

.task-duration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.task-duration i {
    color: #6b7280;
    font-size: 16px;
}

.duration-text {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.task-completion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.task-completion i {
    color: #3b82f6;
    font-size: 16px;
}

.completion-text {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin: 0;
}

/* Responsive adjustments for task info section */
@media (max-width: 768px) {
    .task-info-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .task-reward,
    .task-duration,
    .task-completion {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .task-reward i,
    .task-duration i,
    .task-completion i {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .reward-amount,
    .duration-text,
    .completion-text {
        font-size: 0.875rem;
    }
}

/* Handle cases with only 2 items */
.task-info-section.no-completion {
    grid-template-columns: 1fr 1fr 1fr;
}

.task-info-section.no-completion .task-completion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-align: center;
    opacity: 0.3;
    pointer-events: none;
}

.task-info-section.no-completion .task-completion i {
    color: #9ca3af;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.task-info-section.no-completion .task-completion .completion-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    margin: 0;
}

.task-details-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.task-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    color: #334155;
    font-weight: 600;
}

.task-action-section {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.task-action-btn.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.task-action-btn.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.task-action-btn.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.task-action-btn.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.task-action-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.task-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status Badge Colors */
.task-status-badge.status-locked {
    color: #6b7280;
}

.task-status-badge.status-available {
    color: #2563eb;
}

.task-status-badge.status-unlocked {
    color: #059669;
}

.task-status-badge.status-pending {
    color: #d97706;
}

.task-status-badge.status-complete {
    color: #059669;
}

.task-status-badge.status-disabled {
    color: #dc2626;
}

/* Wallet Section */
.wallet-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wallet-overview {
    display: flex;
    justify-content: center;
}

.wallet-balance-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 500px;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.balance-icon-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.balance-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.balance-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.balance-display-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.balance-amount-large {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

.withdraw-btn-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.withdraw-btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.transaction-history {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-content-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.activity-item .flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-item .flex-shrink-0 {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.activity-item .ml-4 {
    margin-left: 1rem;
}

.activity-item p {
    margin: 0;
}

.activity-item .text-sm {
    font-size: 0.875rem;
}

.activity-item .font-medium {
    font-weight: 500;
}

.activity-item .text-gray-900 {
    color: #1f2937;
}

.activity-item .text-gray-500 {
    color: #6b7280;
}

.activity-item .text-gray-400 {
    color: #9ca3af;
}

.activity-item .text-xs {
    font-size: 0.75rem;
}

.activity-item .text-right {
    text-align: right;
}

.activity-item .text-green-600 {
    color: #059669;
}

.activity-item .text-red-600 {
    color: #dc2626;
}

/* Activity Section */
.activity-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.activity-content-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Notifications Section */
.notifications-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mark-all-read-btn-modern {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mark-all-read-btn-modern:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.notifications-content-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.notification-item.unread {
    border-left: 4px solid #667eea;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.notification-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* Enhanced Notification Popup */
.notification-popup-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.notification-popup-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.notification-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%);
    }

    50% {
        transform: translateX(100%) translateY(100%);
    }
}

.popup-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.popup-title i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.close-popup-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.close-popup-btn i {
    font-size: 1.1rem;
}

.notification-popup-body {
    padding: 1.5rem 2rem 2rem;
    background: #fafbfc;
}

.notification-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-btn-small {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.action-btn-small:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.action-btn-small i {
    font-size: 0.875rem;
}

.notification-list-modern {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for notification list */
.notification-list-modern::-webkit-scrollbar {
    width: 6px;
}

.notification-list-modern::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.notification-list-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-list-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced notification items */
.notification-item {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notification-item.unread::before {
    transform: scaleY(1);
}

.notification-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.notification-item.unread {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-color: #667eea;
}

.notification-item .notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
}

.notification-item .notification-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.notification-item .notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}

.notifications-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.notifications-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.notifications-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.notifications-empty p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

.action-btn-small:hover {
    background: #e5e7eb;
    color: #374151;
}

.notification-list-modern {
    max-height: 300px;
    overflow-y: auto;
}

/* Modals */
.modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-container-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

/* Modern Modal Header - Clean and Compact */
.modal-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0.75rem 0.75rem 0 0;
    flex-shrink: 0;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.modal-title-content {
    flex: 1;
    min-width: 0;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.modal-body-modern {
    padding: 1.5rem;
}

.modal-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.form-input-modern {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

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

.form-select-modern {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

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

.form-help-modern {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

/* Clean Modal Footer Styling */
.modal-footer-modern {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 0.75rem 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 0.75rem 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Modal Action Buttons */
.modal-footer-modern .btn,
.modal-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.modal-footer-modern .btn-primary,
.modal-actions .btn-primary {
    background: #2563eb;
    color: white;
}

.modal-footer-modern .btn-primary:hover,
.modal-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.modal-footer-modern .btn-secondary,
.modal-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.modal-footer-modern .btn-secondary:hover,
.modal-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.modal-footer-modern .btn-outline,
.modal-actions .btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.modal-footer-modern .btn-outline:hover,
.modal-actions .btn-outline:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* Specific Modal Footer Button Styling */
.modal-footer .btn,
.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
    height: 44px;
}

.modal-footer .btn-primary {
    background: #2563eb;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modal-footer .btn-primary:disabled {
    background: #9ca3af !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.modal-footer .btn-primary:disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.modal-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-footer .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #1f2937;
    transform: translateY(-1px);
}

/* Modal Footer Layout */
.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 0.75rem 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.modal-footer .flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: flex-end;
}

.modal-footer .items-center {
    align-items: center;
}

.modal-footer .justify-between {
    justify-content: space-between;
}

.modal-footer .space-x-3 {
    gap: 0.75rem;
}

/* Modal Container Fixes for Centering and Scrolling */
.modal-container-modern {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 100%;
    max-width: 600px;
}

.modal-container-modern.max-w-2xl {
    max-width: 42rem;
}

.modal-container-modern.max-w-4xl {
    max-width: 56rem;
}

.modal-body-modern {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #ffffff;
}

/* DNS Modal Redesign - Modern and Consistent */
.dns-progress-indicator {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.step.active .step-label {
    color: #1e293b;
    font-weight: 600;
}

.step-line {
    width: 2rem;
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

/* DNS Content Sections */
.dns-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dns-section {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.section-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.section-title h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.section-title p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Instructions List */
.instructions-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.instruction-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.instruction-content {
    flex: 1;
    min-width: 0;
}

.instruction-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.instruction-content p {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.dns-address-box {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.dns-address-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dns-address-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    word-break: break-all;
}

/* Verification Box */
.verification-box {
    padding: 1.5rem;
}

.dns-server-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.server-label {
    font-size: 0.8125rem;
    color: #374151;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.server-address span {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7c3aed;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: #e2e8f0;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #cbd5e1;
    color: #475569;
}

.verification-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.verify-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.verification-result {
    flex: 1;
    min-height: 2rem;
    display: flex;
    align-items: center;
}

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notice-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notice-content h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 0.25rem 0;
}

.notice-content p {
    font-size: 0.8125rem;
    color: #92400e;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 640px) {
    .dns-progress-indicator {
        padding: 1rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .step-line {
        width: 1rem;
    }

    .section-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .section-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .instructions-list {
        padding: 1rem;
        gap: 1rem;
    }

    .verification-box {
        padding: 1rem;
    }

    .server-address {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .verification-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

.btn-secondary-modern {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-modern:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Button Styles for Task Cards */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-disabled {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: not-allowed;
    width: 100%;
    opacity: 0.6;
}

/* Loading Spinner */
.loading-spinner-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner-icon {
    width: 48px;
    height: 48px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        min-height: auto;
        padding: 1.5rem;
    }

    .profile-info {
        align-items: center;
    }

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

    .stat-card {
        min-height: 100px;
        padding: 1rem;
    }

    .stat-value,
    .stat-content p {
        font-size: 1.125rem;
        text-align: center;
    }

    .balance-large {
        font-size: 1.25rem !important;
        text-align: center !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .task-card-modern {
        min-height: 320px;
        margin: 0;
    }

    .task-card-header {
        height: 160px;
    }

    .task-card-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .task-title {
        font-size: 1.125rem;
    }

    .task-description {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    .task-info-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .task-reward,
    .task-duration,
    .task-completion {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .task-action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .task-status-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    .task-requirement-badge,
    .task-difficulty-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
    }

    .balance-display-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .modal-container-modern {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .modal-body-modern {
        padding: 1rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }

    .modal-footer-modern {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }

    .dns-progress-indicator {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .progress-steps {
        gap: 0.5rem;
    }

    .section-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .instructions-list {
        padding: 1rem;
    }

    .verification-box {
        padding: 1rem;
    }
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.h-16 {
    height: 4rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.text-blue-600 {
    color: #2563eb;
}

/* Main content area */
.min-h-screen {
    min-height: 100vh;
}

.flex.items-center.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.max-w-md {
    max-width: 28rem;
}

.w-full {
    width: 100%;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-extrabold {
    font-weight: 800;
}

.text-gray-900 {
    color: #111827;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-600 {
    color: #4b5563;
}

/* Button fallbacks */
button {
    cursor: pointer;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.group {
    position: relative;
}

.relative {
    position: relative;
}

.w-full {
    width: 100%;
}

.flex.justify-center {
    display: flex;
    justify-content: center;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.border {
    border-width: 1px;
}

.border-transparent {
    border-color: transparent;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-medium {
    font-weight: 500;
}

.rounded-md {
    border-radius: 0.375rem;
}

.text-white {
    color: white;
}

.bg-red-600 {
    background-color: #dc2626;
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.text-gray-700 {
    color: #374151;
}

.bg-white {
    background-color: white;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

/* Form fallbacks */
input {
    appearance: none;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    width: 100%;
    color: #111827;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.placeholder-gray-500::placeholder {
    color: #6b7280;
}

/* Visibility utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Ensure dashboard elements are properly visible */
#dashboard {
    display: block;
    background-color: #f9fafb;
    min-height: calc(100vh - 4rem);
}

#dashboard.hidden {
    display: none !important;
}

#login-page {
    display: block;
    background-color: #f9fafb;
    min-height: 100vh;
}

#login-page.hidden {
    display: none !important;
}

#admin-panel {
    display: block;
    background-color: #f9fafb;
    min-height: calc(100vh - 4rem);
}

#admin-panel.hidden {
    display: none !important;
}

/* Dashboard content fallbacks */
.bg-white {
    background-color: white;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.mb-4 {
    margin-bottom: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-6 {
    gap: 1.5rem;
}

/* Tab navigation fallbacks */
.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.-mb-px {
    margin-bottom: -1px;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-gray-500 {
    color: #6b7280;
}

.hover\:text-gray-700:hover {
    color: #374151;
}

.hover\:border-gray-300:hover {
    border-color: #d1d5db;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.text-blue-600 {
    color: #2563eb;
}

.active {
    border-color: #3b82f6;
    color: #2563eb;
}

/* Tab content visibility */
.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none !important;
}

.admin-tab-content {
    display: block;
}

.admin-tab-content.hidden {
    display: none !important;
}

/* Tab styling */
.tab-btn {
    white-space: nowrap;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
}

.tab-btn:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.tab-btn.active {
    border-bottom-color: #3b82f6;
    color: #2563eb;
}

.admin-tab-btn {
    white-space: nowrap;
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
}

.admin-tab-btn:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.admin-tab-btn.active {
    border-bottom-color: #3b82f6;
    color: #2563eb;
}

/* Unified Modern Task Card Styling */
.task-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    position: relative;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.task-card:hover::before {
    transform: scaleX(1);
}

.task-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.task-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(30%);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.task-card.locked:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.task-card.pending {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.task-card.pending::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.task-card.complete {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.task-card.complete::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.task-card.unlocked {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.task-card.unlocked::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.task-card.rejected {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.task-card.rejected::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.task-card.expired {
    opacity: 0.8;
    filter: grayscale(20%);
    border-left: 4px solid #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.task-card.expired::before {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

/* Modern Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.status-locked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.status-complete {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.status-approved {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.status-rejected {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.status-unlocked {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
}

.status-expired {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Reward styling */
.reward-amount {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #059669;
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form styling */
.form-input {
    appearance: none;
    border-radius: 0.375rem;
    position: relative;
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    z-index: 10;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button styling */
.btn-primary {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: white;
    background-color: #2563eb;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: #374151;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-success {
    background-color: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-success:hover {
    background-color: #047857;
}

/* Image upload styling */
.image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.image-upload:hover {
    border-color: #9ca3af;
}

.image-upload.has-image {
    border-color: #60a5fa;
    background-color: #eff6ff;
}

/* Loading states */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive grid */
.task-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .task-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Activity item styling */
.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

/* Admin action buttons */
.admin-actions {
    display: flex;
    gap: 0.5rem;
}

/* Android version check styling */
.android-check {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.android-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Verification phase styling */
.verification-phase {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.verification-phase.completed {
    border-color: #4ade80;
    background-color: #f0fdf4;
}

.verification-phase.pending {
    border-color: #facc15;
    background-color: #fffbeb;
}

.verification-phase.locked {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

/* File upload preview */
.file-preview {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.file-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    font-weight: 500;
    max-width: 20rem;
    word-wrap: break-word;
}

.toast.success {
    background-color: #10b981;
    color: white;
}

.toast.error {
    background-color: #ef4444;
    color: white;
}

.toast.info {
    background-color: #3b82f6;
    color: white;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .tab-btn {
        font-size: 0.75rem;
        line-height: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .admin-tab-btn {
        font-size: 0.75rem;
        line-height: 1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .task-card {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Modern Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

/* Clean Modal Body Styling */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    background: #ffffff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
}

/* Form Group Styling */
.modal-body .form-group {
    margin-bottom: 0;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

/* Section Headers */
.modal-body .form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    display: block;
}

/* Info Boxes */
.modal-body .bg-blue-50,
.modal-body .bg-green-50,
.modal-body .bg-purple-50 {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.modal-body .bg-blue-50 {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.modal-body .bg-green-50 {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.modal-body .bg-purple-50 {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

/* Info Box Headers */
.modal-body .flex.items-center {
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-body .flex.items-center.mb-2 {
    margin-bottom: 0.5rem;
}

.modal-body .flex.items-center.mb-3 {
    margin-bottom: 0.75rem;
}

.modal-body .text-blue-800,
.modal-body .text-green-800,
.modal-body .text-purple-800 {
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-body .text-blue-700,
.modal-body .text-green-700 {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
}

/* Instructions List */
.modal-body .space-y-3 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body .flex.items-start {
    align-items: flex-start;
    gap: 0.75rem;
}

.modal-body .space-x-3 {
    gap: 0.75rem;
}

.modal-body .flex-shrink-0 {
    flex-shrink: 0;
}

.modal-body .w-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.modal-body .h-6 {
    height: 1.5rem;
}

.modal-body .bg-blue-600 {
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-body .font-medium {
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.modal-body .text-gray-900 {
    color: #1f2937;
}

.modal-body .text-gray-600 {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

.modal-body .text-sm {
    font-size: 0.8125rem;
}

/* DNS Address Display */
.modal-body .bg-gray-100 {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.modal-body .text-blue-600 {
    color: #2563eb;
    font-weight: 600;
}

.modal-body .font-mono {
    font-family: 'Courier New', monospace;
}

/* DNS Server Input */
.modal-body .bg-white {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.modal-body .flex.items-center.justify-between {
    align-items: center;
    justify-content: space-between;
}

.modal-body .text-gray-600 {
    color: #6b7280;
}

.modal-body .text-purple-600 {
    color: #7c3aed;
}

/* Buttons */
.modal-body .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-body .btn-primary {
    background: #2563eb;
    color: white;
}

.modal-body .btn-primary:hover {
    background: #1d4ed8;
}

.modal-body .btn-secondary {
    background: #6b7280;
    color: white;
}

.modal-body .btn-secondary:hover {
    background: #4b5563;
}

/* Copy Button */
.modal-body .copy-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-body .copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Verification Result */
.modal-body .flex.items-center.space-x-2 {
    align-items: center;
    gap: 0.5rem;
}

.modal-body .min-h-\[32px\] {
    min-height: 2rem;
}

/* Main Modal Header - Used by JavaScript-generated modals */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0.75rem 0.75rem 0 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.modal-header .flex {
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.modal-header .flex.items-start {
    align-items: center;
}

.modal-header .space-x-4 {
    gap: 0.75rem;
}

.modal-header .w-14 {
    width: 40px;
    height: 40px;
}

.modal-header .h-14 {
    height: 40px;
}

.modal-header .flex-1 {
    flex: 1;
    min-width: 0;
}

.modal-header .min-w-0 {
    min-width: 0;
}

.modal-header .modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-header .text-sm {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.modal-header .modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-header .modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

/* Status Badge Styling for Modals */
.modal-header .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.modal-header .status-badge.rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.modal-header .status-badge.pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.modal-header .status-badge.completed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.modal-header .status-badge.in-progress {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Reward Amount Styling */
.modal-header .reward-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #a7f3d0;
    flex-shrink: 0;
}

/* Compact spacing for modal header elements */
.modal-header .space-x-3 {
    gap: 0.5rem;
}

.modal-header .mb-2 {
    margin-bottom: 0.25rem;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #475569;
}

.modal-form {
    padding: 0 24px 24px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .modal-container {
        margin: 16px auto;
        max-width: calc(100vw - 32px);
        border-radius: 12px;
        width: calc(100vw - 32px);
        left: 50%;
        transform: translateX(-50%);
        position: fixed;
        overflow-x: hidden;
    }

    .task-detail-container {
        max-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
    }

    .modal {
        padding: 16px;
        overflow-x: hidden;
    }

    .modal-body {
        padding: 0 16px 16px 16px;
        overflow-x: hidden;
        word-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }

    .modal-content {
        overflow-x: hidden;
        word-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }

    .modal-body * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-body p,
    .modal-body li,
    .modal-body div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Specific fixes for task detail modal */
    .task-detail-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .task-detail-content h3,
    .task-detail-content h4,
    .task-detail-content p,
    .task-detail-content li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .task-detail-content ul,
    .task-detail-content ol {
        padding-left: 20px;
        max-width: 100%;
    }

    .task-detail-content li {
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix for form groups and pre elements */
    .form-group {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .form-group pre {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
    }

    .form-group div {
        max-width: 100%;
        overflow-x: hidden;
    }

    .modal-header {
        padding: 20px 20px 0 20px;
        margin-bottom: 20px;
    }

    .modal-form {
        padding: 0 20px 20px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .modal-title {
        font-size: 18px;
    }
}

/* Task Detail Modal Specific Styling */
.task-detail-container {
    max-width: 600px;
    max-height: 80vh;
}

.task-detail-container .modal-form {
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

/* Status Badge Styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

.status-available {
    background-color: #fef3c7;
    color: #92400e;
}

.status-unlocked {
    background-color: #d1fae5;
    color: #065f46;
}

.status-ready-phase2 {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-complete {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-locked {
    background-color: #f3f4f6;
    color: #374151;
}

.status-disabled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-disabled {
    background: #9ca3af;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

/* Disabled button states */
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    background: #9ca3af !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

button:disabled:hover,
.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure admin buttons are not affected by disabled styles unless explicitly disabled */
#add-task-btn:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: white !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

#add-task-btn:not(:disabled):hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4) !important;
}

/* Task Card States */
.task-card.disabled {
    opacity: 0.6;
    filter: grayscale(50%);
}

.task-card.disabled::after {
    content: "Account Disabled";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10;
}

/* Activity History Styles */
.activity-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item .flex-shrink-0 .w-10 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.activity-item .ml-4 {
    margin-left: 16px;
}

.activity-item .text-sm {
    font-size: 14px;
    line-height: 1.4;
}

.activity-item .text-xs {
    font-size: 12px;
    line-height: 1.3;
}

.activity-item .text-gray-900 {
    color: #111827;
    font-weight: 500;
}

.activity-item .text-gray-600 {
    color: #4b5563;
}

.activity-item .text-gray-400 {
    color: #9ca3af;
}

.activity-item .text-right {
    text-align: right;
    flex-shrink: 0;
}

.activity-item .text-green-600 {
    color: #059669;
    font-weight: 500;
}

.activity-item .text-red-600 {
    color: #dc2626;
    font-weight: 500;
}

.activity-item .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-item .status-badge.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.activity-item .status-badge.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.activity-item .status-badge.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.activity-item .status-badge.status-completed {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Notification Styles */
.notification-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.notification-item.unread {
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.notification-item.read {
    background-color: #ffffff;
    opacity: 0.8;
}

.notification-item:hover {
    background-color: #f1f5f9;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.notification-item .notification-content {
    margin-left: 16px;
    flex: 1;
}

.notification-item .notification-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item .notification-message {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
}

/* Updated notification badge to use status badge styling */
.notification-item .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.notification-item .status-approved {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notification-item .status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

#notification-badge {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 500;
}

/* Activity and Notification Container Styles */
#activity-history,
#notifications-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

#activity-history::-webkit-scrollbar,
#notifications-list::-webkit-scrollbar {
    width: 6px;
}

#activity-history::-webkit-scrollbar-track,
#notifications-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#activity-history::-webkit-scrollbar-thumb,
#notifications-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#activity-history::-webkit-scrollbar-thumb:hover,
#notifications-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Empty State Styles */
.activity-empty,
.notifications-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.activity-empty i,
.notifications-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.activity-empty p,
.notifications-empty p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Tab Content Styles */
.tab-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.tab-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-content h3 i {
    color: #3b82f6;
}

/* Mark All Read Button */
#mark-all-read-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#mark-all-read-btn:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Withdrawal Rejection Emphasis */
.notification-item.withdrawal-rejected {
    border-left: 4px solid #dc2626 !important;
    background-color: #fef2f2 !important;
}

.notification-item.withdrawal-rejected.unread {
    background-color: #fef2f2 !important;
    border-left: 4px solid #dc2626 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1) !important;
}

.rejection-reason-box {
    margin: 8px 0 !important;
    padding: 12px !important;
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    border-left: 4px solid #dc2626 !important;
}

.rejection-reason-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #991b1b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
}

.rejection-reason-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #7f1d1d !important;
    line-height: 1.4 !important;
    background-color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #fecaca !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Activity History Rejection Emphasis */
.activity-item.withdrawal-rejected-activity {
    border-left: 4px solid #dc2626 !important;
    background-color: #fef2f2 !important;
}

.activity-item.withdrawal-rejected-activity:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15) !important;
}

/* User Dashboard Navbar Styles */
.user-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.user-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.user-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.user-nav-left {
    flex: 1;
    min-width: 0;
}

.user-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-logo-section:hover {
    transform: translateY(-1px);
}

.user-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.user-logo-section:hover .user-logo-img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-brand-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.balance-display-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-right: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(6px);
    height: 28px;
    min-width: 60px;
}

.balance-display-section:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.balance-content {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 2px;
}

.balance-label {
    font-size: 8px;
    color: #9ca3af;
    font-weight: 300;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.3px;
}

.balance-amount {
    font-size: 8px;
    color: #6b7280;
    font-weight: 300;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.2px;
}

.user-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-nav-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
    overflow: hidden;
}

.user-nav-btn::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;
}

.user-nav-btn:hover::before {
    left: 100%;
}

.user-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-nav-btn-notification {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-nav-btn-notification:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.user-nav-btn-wallet {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.user-nav-btn-wallet:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.user-nav-btn-menu {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
}

.user-nav-btn-menu:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937;
}

.user-nav-icon {
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-nav-btn:hover .user-nav-icon {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-badge.hidden {
    display: none;
}

/* Mobile Responsive Design for User Navbar */
@media (max-width: 768px) {
    .user-navbar {
        height: 70px;
    }

    .user-nav-container {
        padding: 0 16px;
    }

    .user-nav-content {
        gap: 12px;
    }

    .user-logo-section {
        gap: 12px;
    }

    .user-logo-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .user-brand-name {
        font-size: 20px;
    }

    .user-brand-subtitle {
        font-size: 12px;
    }

    .balance-display-section {
        padding: 1px 4px;
        border-radius: 3px;
        margin-right: 4px;
        height: 24px;
        min-width: 50px;
    }

    .balance-label {
        font-size: 7px;
        font-weight: 300;
        letter-spacing: 0.2px;
    }

    .balance-amount {
        font-size: 7px;
        font-weight: 300;
        letter-spacing: 0.1px;
    }

    .user-nav-right {
        gap: 8px;
    }

    .user-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 14px;
    }

    .user-nav-icon {
        font-size: 14px;
    }

    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        min-width: 16px;
    }
}

@media (max-width: 480px) {
    .user-navbar {
        height: 65px;
    }

    .user-nav-container {
        padding: 0 12px;
    }

    .user-logo-section {
        gap: 10px;
    }

    .user-logo-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .user-brand-name {
        font-size: 18px;
    }

    .user-brand-subtitle {
        font-size: 11px;
    }

    .balance-display-section {
        padding: 1px 3px;
        border-radius: 2px;
        margin-right: 3px;
        height: 22px;
        min-width: 45px;
    }

    .balance-label {
        font-size: 6px;
        font-weight: 300;
        letter-spacing: 0.1px;
    }

    .balance-amount {
        font-size: 6px;
        font-weight: 300;
        letter-spacing: 0.1px;
    }

    .user-nav-right {
        gap: 6px;
    }

    .user-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 13px;
    }

    .user-nav-icon {
        font-size: 13px;
    }

    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        min-width: 14px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .user-nav-container {
        padding: 0 24px;
    }

    .user-logo-img {
        width: 44px;
        height: 44px;
    }

    .user-brand-name {
        font-size: 22px;
    }

    .user-brand-subtitle {
        font-size: 13px;
    }

    .user-nav-btn {
        width: 46px;
        height: 46px;
    }

    .balance-display-section {
        padding: 2px 5px;
        margin-right: 5px;
        height: 26px;
        min-width: 55px;
    }

    .balance-label {
        font-size: 8px;
        font-weight: 300;
        letter-spacing: 0.2px;
    }

    .balance-amount {
        font-size: 8px;
        font-weight: 300;
        letter-spacing: 0.1px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .user-nav-container {
        padding: 0 32px;
    }

    .user-logo-img {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .user-brand-name {
        font-size: 26px;
    }

    .user-brand-subtitle {
        font-size: 15px;
    }

    .user-nav-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .user-nav-icon {
        font-size: 17px;
    }

    .balance-display-section {
        padding: 3px 8px;
        border-radius: 6px;
        margin-right: 8px;
        height: 30px;
        min-width: 65px;
    }

    .balance-label {
        font-size: 9px;
        font-weight: 300;
        letter-spacing: 0.3px;
    }

    .balance-amount {
        font-size: 9px;
        font-weight: 300;
        letter-spacing: 0.2px;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0;
}

.mobile-menu-overlay.hidden {
    display: none;
}

.mobile-menu {
    background: white;
    width: 280px;
    height: 100%;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 60px;
    /* Account for top navigation bar */
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.mobile-menu-content {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    margin-top: 0;
}

.mobile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 16px;
    min-height: 48px;
    /* Better touch target */
}

.mobile-menu-item:hover {
    background-color: #f9fafb;
}

.mobile-menu-item i {
    width: 20px;
    font-size: 16px;
    color: #374151;
    font-weight: 600;
}

.mobile-menu-item.logout-item {
    color: #dc2626;
}

.mobile-menu-item.logout-item i {
    color: #dc2626;
}

.mobile-menu-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

/* Dashboard Content */
.dashboard-content {
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.tab-content-container {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Profile Tab Styles */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-email {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Professional Profile Styles */
.profile-section {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.avatar-circle i {
    font-size: 32px;
    color: white;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-email {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
    font-weight: 400;
}

.profile-status {
    display: inline-block;
}

.profile-status .status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-card .stat-icon i {
    font-size: 20px;
    color: white;
}

.stat-card .stat-content {
    text-align: left;
}

.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.stat-card .stat-value.balance {
    color: #059669;
    font-size: 28px;
}

.stat-card .stat-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.balance-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.balance-card .stat-icon {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.balance-card .stat-label {
    color: #047857;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-section {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .avatar-circle {
        width: 64px;
        height: 64px;
    }

    .avatar-circle i {
        font-size: 24px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-email {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }

    .stat-card .stat-value.balance {
        font-size: 24px;
    }
}

.stat-value.balance {
    color: #10b981;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Tasks Tab Styles */
.tasks-container {
    padding: 0;
}

.tasks-header {
    margin-bottom: 20px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Desktop: More compact task grid */
@media (min-width: 1024px) {
    .tasks-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .task-card {
        padding: 12px;
        margin-bottom: 0;
    }

    .task-card img {
        height: 120px !important;
    }

    .task-card h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .task-card p {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .reward-amount {
        font-size: 18px !important;
    }
}

/* Wallet Tab Styles */
.wallet-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 28px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.wallet-balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.wallet-balance-card .section-title {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wallet-balance-card .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.balance-header {
    margin-bottom: 20px;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.withdraw-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.wallet-history-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.history-content {
    max-height: 400px;
    overflow-y: auto;
}

/* Activity Tab Styles */
.activity-container {
    padding: 0;
}

.activity-header {
    margin-bottom: 20px;
}

.activity-content {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

/* Enhanced Notifications Tab Styles */
.notifications-container {
    padding: 0;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.header-left {
    flex: 1;
}

.mark-all-read-btn-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.mark-all-read-btn-modern::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.6s ease;
}

.mark-all-read-btn-modern:hover::before {
    left: 100%;
}

.mark-all-read-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mark-all-read-btn-modern:active {
    transform: translateY(0);
}

.notifications-content-modern {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for notifications content */
.notifications-content-modern::-webkit-scrollbar {
    width: 8px;
}

.notifications-content-modern::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.notifications-content-modern::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.notifications-content-modern::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced notification items for main page */
.notifications-content-modern .notification-item {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notifications-content-modern .notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.notifications-content-modern .notification-item.unread::before {
    transform: scaleY(1);
}

.notifications-content-modern .notification-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.notifications-content-modern .notification-item.unread {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.notifications-content-modern .notification-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notifications-content-modern .notification-content {
    flex: 1;
    min-width: 0;
}

.notifications-content-modern .notification-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.notifications-content-modern .notification-message {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.notifications-content-modern .notification-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}

/* Special notification types styling */
.notifications-content-modern .auto-rejected-notification {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.notifications-content-modern .auto-rejected-notification::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notifications-content-modern .withdrawal-rejected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.notifications-content-modern .withdrawal-rejected::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notifications-content-modern .immutable-link-rejected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.notifications-content-modern .immutable-link-rejected::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Auto-reject details styling */
.auto-reject-details {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
}

.auto-reject-task,
.auto-reject-gameid {
    color: #374151;
    margin-bottom: 0.25rem;
}

.auto-reject-task:last-child,
.auto-reject-gameid:last-child {
    margin-bottom: 0;
}

/* Rejection reason styling */
.rejection-reason-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.rejection-reason-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.rejection-reason-text {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.4;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile-specific dashboard improvements */
    .dashboard-content {
        padding: 16px;
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .profile-card {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .profile-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .profile-name {
        font-size: 18px;
    }

    .stat-item {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 15px;
    }

    .stat-value.balance {
        font-size: 16px;
    }

    .wallet-balance-card {
        padding: 20px;
        border-radius: 16px;
    }

    .wallet-balance-card .section-title {
        font-size: 18px;
    }

    .wallet-balance-card .section-subtitle {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.95);
    }

    .balance-amount {
        font-size: 28px;
    }

    .withdraw-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .wallet-history-card,
    .activity-content,
    .notifications-content {
        padding: 16px;
        border-radius: 16px;
    }

    .notifications-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mark-all-read-btn {
        align-self: flex-start;
    }

    .section-title {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .task-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }

    .mobile-menu-header {
        margin-top: 65px;
        padding: 16px 12px;
    }

    .mobile-menu-header h3 {
        font-size: 16px;
    }

    .mobile-menu-content {
        padding: 12px 0;
    }

    .mobile-menu-item {
        padding: 14px 12px;
        font-size: 15px;
        min-height: 44px;
    }

    /* Extra small screen optimizations */
    .dashboard-content {
        padding: 12px;
        margin-top: 65px;
        min-height: calc(100vh - 65px);
    }

    .profile-card {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .profile-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-email {
        font-size: 13px;
    }

    .stat-item {
        padding: 10px;
        gap: 8px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-value.balance {
        font-size: 15px;
    }

    .wallet-balance-card {
        padding: 16px;
        border-radius: 12px;
    }

    .wallet-balance-card .section-title {
        font-size: 16px;
    }

    .wallet-balance-card .section-subtitle {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.95);
    }

    .balance-amount {
        font-size: 24px;
    }

    .withdraw-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .wallet-history-card,
    .activity-content,
    .notifications-content {
        padding: 12px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    /* Task card mobile optimizations */
    .task-card {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .task-card:hover {
        transform: translateY(-2px);
    }
}

/* Removed duplicate notification popup styles - using notification-popup-modern instead */

/* Admin Panel Styles */
.admin-content {
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    color: #ffffff;
}

/* Admin Navbar Styles */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.admin-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.admin-nav-left {
    flex: 1;
    min-width: 0;
}

.admin-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-logo-section:hover {
    transform: translateY(-1px);
}

.admin-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.admin-logo-section:hover .admin-logo-img {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.admin-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-brand-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-decoration: none;
}

.admin-nav-btn::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;
}

.admin-nav-btn:hover::before {
    left: 100%;
}

.admin-nav-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-nav-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.admin-nav-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-nav-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-nav-icon {
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-nav-btn:hover .admin-nav-icon {
    transform: scale(1.1);
}

.admin-nav-text {
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Mobile Responsive Design for Admin Navbar */
@media (max-width: 768px) {
    .admin-navbar {
        height: 70px;
    }

    .admin-content {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .admin-nav-container {
        padding: 0 16px;
    }

    .admin-nav-content {
        gap: 12px;
    }

    .admin-logo-section {
        gap: 12px;
    }

    .admin-logo-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .admin-brand-name {
        font-size: 20px;
    }

    .admin-brand-subtitle {
        font-size: 12px;
    }

    .admin-nav-right {
        gap: 8px;
    }

    .admin-nav-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }

    .admin-nav-icon {
        font-size: 14px;
    }

    .admin-nav-text {
        display: none;
    }

    .admin-nav-btn {
        padding: 10px 12px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .admin-navbar {
        height: 65px;
    }

    .admin-content {
        margin-top: 65px;
        min-height: calc(100vh - 65px);
    }

    .admin-nav-container {
        padding: 0 12px;
    }

    .admin-logo-section {
        gap: 10px;
    }

    .admin-logo-img {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .admin-brand-name {
        font-size: 18px;
    }

    .admin-brand-subtitle {
        font-size: 11px;
    }

    .admin-nav-right {
        gap: 6px;
    }

    .admin-nav-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 40px;
        border-radius: 8px;
    }

    .admin-nav-icon {
        font-size: 13px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-nav-container {
        padding: 0 24px;
    }

    .admin-logo-img {
        width: 44px;
        height: 44px;
    }

    .admin-brand-name {
        font-size: 22px;
    }

    .admin-brand-subtitle {
        font-size: 13px;
    }

    .admin-nav-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .admin-nav-container {
        padding: 0 32px;
    }

    .admin-logo-img {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .admin-brand-name {
        font-size: 26px;
    }

    .admin-brand-subtitle {
        font-size: 15px;
    }

    .admin-nav-btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 52px;
    }

    .admin-nav-icon {
        font-size: 17px;
    }
}

/* Admin Navigation Button Styles */
#nav-buttons button {
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
}

#nav-buttons button:hover {
    color: #111827;
}

.admin-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 0;
}

.admin-title-section {
    flex: 1;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-actions {
    display: flex;
    gap: 12px;
}

/* Modern Admin Buttons - Consistent with Dashboard */
.admin-action-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.admin-action-btn::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;
}

.admin-action-btn:hover::before {
    left: 100%;
}

.admin-action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.admin-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.admin-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.admin-action-btn.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.admin-action-btn.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.admin-action-btn.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-action-btn.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.admin-action-btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-action-btn.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.admin-action-btn.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-action-btn.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* Modern Admin Cards - Consistent with Dashboard */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1f2937;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.2);
}

.admin-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-card-modern:hover::before {
    transform: scaleX(1);
}

.admin-card-modern:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.2);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.admin-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-title i {
    color: #667eea;
    font-size: 1.25rem;
}

.admin-card-content {
    color: #4b5563;
    line-height: 1.6;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.stat-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* Modern Admin Modals - Consistent with Dashboard */
.admin-modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal-container-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.admin-modal-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0.75rem 0.75rem 0 0;
    flex-shrink: 0;
}

.admin-modal-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.admin-modal-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-modal-title-content {
    flex: 1;
    min-width: 0;
}

.admin-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.admin-modal-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.admin-modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.admin-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.admin-modal-body-modern {
    padding: 1.5rem;
}

.admin-modal-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.admin-form-input-modern {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

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

.admin-form-select-modern {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

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

.admin-form-help-modern {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.admin-modal-footer-modern {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 0.75rem 0.75rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

.admin-modal-footer-modern .btn,
.admin-modal-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-modal-footer-modern .btn-primary,
.admin-modal-actions .btn-primary {
    background: #2563eb;
    color: white;
}

.admin-modal-footer-modern .btn-primary:hover,
.admin-modal-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-modal-footer-modern .btn-secondary,
.admin-modal-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.admin-modal-footer-modern .btn-secondary:hover,
.admin-modal-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.admin-modal-footer-modern .btn-danger,
.admin-modal-actions .btn-danger {
    background: #ef4444;
    color: white;
}

.admin-modal-footer-modern .btn-danger:hover,
.admin-modal-actions .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

/* Modern Admin Forms - Consistent with Dashboard */
.admin-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.admin-form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

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

.admin-form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
}

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

.admin-form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    resize: vertical;
    min-height: 100px;
}

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

.admin-form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.admin-form-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin: 0;
}

.admin-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    font-size: 14px;
}

.admin-tab-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateY(-1px);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.admin-tab-btn i {
    font-size: 16px;
    font-weight: 600;
}

/* Admin Tab Content */
.admin-tab-content-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-tab-content {
    display: none;
    padding: 24px;
}

.admin-tab-content.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.overview-card {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: #3b82f6;
}

.card-content {
    padding: 20px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* Modern Admin Quick Action Buttons - Consistent with Dashboard */
.quick-action-btn {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-action-btn:hover::before {
    transform: scaleX(1);
}

.quick-action-btn:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    color: #1f2937;
}

.quick-action-btn i {
    font-size: 24px;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-action-btn:hover i {
    color: #4f46e5;
    transform: scale(1.1);
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Status Items */
.status-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #10b981;
}

.status-indicator.offline {
    background: #ef4444;
}

.status-text {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.status-value {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    background: #3b82f6;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.activity-time {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-title {
        font-size: 24px;
    }

    .admin-tabs {
        flex-direction: row;
        gap: 2px;
        padding: 2px;
    }

    .admin-tab-btn {
        justify-content: center;
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .admin-tab-btn i {
        font-size: 14px;
    }

    .admin-tab-btn span {
        display: none;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-content {
        padding: 12px;
    }

    .admin-header {
        gap: 12px;
    }

    .admin-title {
        font-size: 20px;
    }

    .admin-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 13px;
    }

    .admin-tabs {
        padding: 2px;
        gap: 1px;
    }

    .admin-tab-btn {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .admin-tab-btn i {
        font-size: 12px;
    }

    .admin-tab-content {
        padding: 16px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-action-btn {
        padding: 14px 10px;
        gap: 6px;
    }

    .quick-action-btn i {
        font-size: 18px;
    }

    .quick-action-btn span {
        font-size: 11px;
    }
}

/* User Management Styles */
.user-management-container {
    padding: 0;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.header-left {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.user-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #3b82f6;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.user-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.user-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.user-email {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.user-stat {
    text-align: center;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 2px 0;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
}

.user-action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f9ff;
}

.user-action-btn.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.user-action-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.user-action-btn.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.user-action-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.user-action-btn.success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.user-action-btn.success:hover {
    background: #059669;
    border-color: #059669;
}

/* User Activity Modal */
#user-activity-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

#user-activity-modal .modal-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#user-activity-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-activity-modal .modal-title i {
    color: #3b82f6;
}

#user-activity-modal .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

#user-activity-modal .close-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

#user-activity-modal .modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info-section .user-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.user-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.user-details p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 2px 0;
}

.activity-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.activity-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    border-radius: 6px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.activity-tab-btn:hover {
    background: white;
    color: #374151;
}

.activity-tab-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.activity-tab-content {
    display: none;
}

.activity-tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-filters {
        flex-direction: column;
        gap: 12px;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .user-actions {
        flex-direction: column;
    }

    .user-action-btn {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .user-card {
        padding: 16px;
    }

    .user-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-info-section {
        flex-direction: column;
        text-align: center;
    }

    .activity-tabs {
        flex-direction: column;
    }

    #user-activity-modal .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    #user-activity-modal .modal-header {
        padding: 16px 20px;
    }

    #user-activity-modal .modal-body {
        padding: 20px;
    }

    .user-info-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Balance Modal Styling */
#balance-modal .modal-content {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

#balance-modal .modal-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#balance-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#balance-modal .modal-title i {
    color: #3b82f6;
}

#balance-modal .close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

#balance-modal .close-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

#balance-modal .modal-body {
    padding: 24px;
}

#balance-modal .modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#balance-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#balance-modal .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

#balance-modal .form-input,
#balance-modal .form-select,
#balance-modal .form-textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

#balance-modal .form-input:focus,
#balance-modal .form-select:focus,
#balance-modal .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#balance-modal .form-input.readonly {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

#balance-modal .form-textarea {
    resize: vertical;
    min-height: 80px;
}

#balance-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

#balance-modal .btn-primary,
#balance-modal .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

#balance-modal .btn-primary {
    background: #3b82f6;
    color: white;
}

#balance-modal .btn-primary:hover {
    background: #2563eb;
}

#balance-modal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

#balance-modal .btn-secondary:hover {
    background: #e5e7eb;
}

/* Responsive Design for Balance Modal */
@media (max-width: 640px) {
    #balance-modal .modal-content {
        width: 95%;
        margin: 20px;
    }

    #balance-modal .modal-header {
        padding: 16px 20px;
    }

    #balance-modal .modal-body {
        padding: 20px;
    }

    #balance-modal .form-actions {
        flex-direction: column;
    }

    #balance-modal .btn-primary,
    #balance-modal .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Settings Tab Styling */
.settings-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.settings-header {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-content {
    padding: 24px;
}

.settings-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.settings-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section-title i {
    color: #3b82f6;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.settings-form .form-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.settings-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-form .form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .settings-content {
        padding: 20px;
    }

    .settings-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
}

/* User Activity Status Styling */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Activity Icon Colors */
.activity-icon.icon-success {
    color: #10b981;
    background-color: #d1fae5;
}

.activity-icon.icon-danger {
    color: #ef4444;
    background-color: #fee2e2;
}

.activity-icon.icon-warning {
    color: #f59e0b;
    background-color: #fef3c7;
}

/* Enhanced Activity Item Styling */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-time {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive Design for Activity Items */
@media (max-width: 640px) {
    .activity-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .activity-text {
        font-size: 13px;
    }

    .status-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Ensure modals are visible */
#add-task-modal,
#edit-task-modal,
#task-detail-modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Global Background for All Pages */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Login Page Styling */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.login-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.nav-logo img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.login-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.google-login-btn {
    width: 100%;
    padding: 14px 20px;
    background: #db4437;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 6px rgba(219, 68, 55, 0.2);
}

.google-login-btn:hover {
    background: #c23321;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(219, 68, 55, 0.3);
}

.google-login-btn i {
    font-size: 20px;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 8px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #4b5563;
    font-size: 16px;
    z-index: 1;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

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

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.password-toggle:hover {
    color: #1f2937;
    background-color: rgba(0, 0, 0, 0.05);
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.login-btn {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-btn {
    flex: 1;
    padding: 14px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

/* Desktop spacing fixes */
@media (min-width: 1024px) {
    .login-card {
        padding: 28px;
        max-width: 400px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-content {
        gap: 18px;
    }

    .login-form {
        gap: 14px;
    }

    .form-group {
        gap: 5px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .form-input {
        padding: 12px 16px 12px 44px;
        font-size: 15px;
    }

    .form-actions {
        margin-top: 6px;
        gap: 10px;
    }

    .login-btn,
    .register-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Responsive Design for Login */
@media (max-width: 640px) {
    .login-container {
        padding: 80px 16px 20px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .login-btn,
    .register-btn {
        width: 100%;
    }
}

/* Toast Styling */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modern Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-modal.show {
    opacity: 1;
    visibility: visible;
}

.loading-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.loading-modal.show .loading-modal-content {
    transform: scale(1);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.loading-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Loading states for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Page transition loading */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.page-loading.show {
    opacity: 1;
    visibility: visible;
}

.page-loading-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.page-loading-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* Checkbox Styling for Register Page */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked+.checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container.error .checkmark {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.checkbox-container.error {
    color: #ef4444;
}

/* Professional Admin Verification Styles */
.admin-verification-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    max-width: 100%;
}

.admin-verification-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.admin-verification-card-empty {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    opacity: 0.7;
}

.admin-verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.admin-verification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.admin-verification-status {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-verification-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-verification-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.admin-verification-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.admin-verification-status-empty {
    background: #f3f4f6;
    color: #6b7280;
}

.admin-verification-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-verification-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}

.admin-info-icon {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.admin-info-text {
    font-weight: 500;
    color: #374151;
}

.admin-verification-images {
    margin-top: 8px;
}

.admin-images-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.admin-images-icon {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.admin-images-count {
    color: #374151;
}

.admin-images-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-image-thumbnail {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.admin-image-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-image-thumbnail:hover .admin-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.admin-thumbnail-overlay i {
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-image-thumbnail:hover .admin-thumbnail-overlay i {
    opacity: 1;
}

.admin-action-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-action-approve {
    background: #10b981;
    color: white;
}

.admin-action-approve:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.admin-action-reject {
    background: #ef4444;
    color: white;
}

.admin-action-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.admin-action-btn i {
    font-size: 10px;
}

/* Desktop optimizations */
@media (min-width: 1024px) {
    .admin-verification-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .admin-verification-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .admin-verification-title {
        font-size: 16px;
    }

    .admin-verification-status {
        font-size: 12px;
        padding: 6px 12px;
    }

    .admin-verification-info {
        gap: 16px;
    }

    .admin-info-item {
        font-size: 13px;
    }

    .admin-info-icon {
        width: 14px;
        height: 14px;
    }

    .admin-images-header {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .admin-images-icon {
        width: 14px;
        height: 14px;
    }

    .admin-image-thumbnail {
        width: 48px;
        height: 48px;
    }

    .admin-action-group {
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .admin-action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .admin-action-btn i {
        font-size: 12px;
    }
}

/* Large desktop optimizations */
@media (min-width: 1440px) {
    .admin-verification-card {
        padding: 24px;
    }

    .admin-verification-title {
        font-size: 18px;
    }

    .admin-verification-status {
        font-size: 13px;
        padding: 8px 16px;
    }

    .admin-info-item {
        font-size: 14px;
    }

    .admin-images-header {
        font-size: 14px;
    }

    .admin-image-thumbnail {
        width: 56px;
        height: 56px;
    }

    .admin-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Compact Admin Verification Styles */
.compact-verification-group {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.compact-verification-group:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.verification-meta {
    flex: 1;
}

.verification-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.verification-ids {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.verification-id {
    font-size: 11px;
    color: #6b7280;
    background: #f9fafb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.verification-date {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

.verification-phases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.compact-phase-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
}

.compact-phase-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.compact-phase-card.empty {
    background: #f3f4f6;
    border-color: #d1d5db;
    opacity: 0.7;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.phase-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.phase-status {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.phase-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.phase-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.phase-status.empty {
    background: #e5e7eb;
    color: #6b7280;
}

.phase-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

.detail-value {
    font-size: 10px;
    color: #374151;
    font-weight: 600;
    font-family: monospace;
}

.phase-screenshots {
    margin-top: 8px;
}

.screenshots-header {
    margin-bottom: 6px;
}

.screenshots-count {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
}

.screenshots-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.screenshot-thumb {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-thumb:hover {
    transform: scale(1.1);
    z-index: 10;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.screenshot-thumb:hover .screenshot-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.screenshot-overlay i {
    color: white;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screenshot-thumb:hover .screenshot-overlay i {
    opacity: 1;
}

.verification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.compact-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-action-btn.approve-btn {
    background: #10b981;
    color: white;
}

.compact-action-btn.approve-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.compact-action-btn.reject-btn {
    background: #ef4444;
    color: white;
}

.compact-action-btn.reject-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.compact-action-btn i {
    font-size: 10px;
}

/* DNS Checker Styles */
.dns-checker-section {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    border: 1px solid #c084fc;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.dns-server-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #4c1d95;
    font-weight: 600;
}

.dns-check-result {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.dns-check-success {
    color: #059669;
}

.dns-check-error {
    color: #dc2626;
}

.dns-check-loading {
    color: #2563eb;
}

/* Disabled button styles */
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #9ca3af;
    border-color: #9ca3af;
}

.btn-primary:disabled:hover {
    background-color: #9ca3af;
    border-color: #9ca3af;
    transform: none;
}

/* Professional Modal Styles */
.modal-container.max-w-2xl {
    max-width: 42rem;
    width: 90%;
    margin: 2rem auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* Removed duplicate modal-header styles - using consolidated version above */

.modal-form {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-actions {
    border-top: 1px solid #e2e8f0;
    margin-top: 0;
    flex-shrink: 0;
}

/* DNS Verification Styles */
.dns-verification-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #c084fc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dns-server-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dns-server-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.dns-server-card .font-mono {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.dns-check-result {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.dns-check-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.dns-check-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.dns-check-loading {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Improved button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* DNS Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-container.max-w-2xl {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-form {
        padding: 1.5rem;
    }

    .modal-actions {
        padding: 1rem 1.5rem;
    }

    .dns-server-card {
        padding: 0.75rem;
    }

    .dns-server-card .font-mono {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .dns-check-result {
        min-height: 2.5rem;
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .modal-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .text-lg {
        font-size: 1rem;
    }

    .text-sm {
        font-size: 0.8125rem;
    }

    .text-xs {
        font-size: 0.75rem;
    }

    .space-y-4>*+* {
        margin-top: 0.75rem;
    }

    .space-x-4>*+* {
        margin-left: 0.75rem;
    }
}

/* Responsive adjustments for compact verification */
@media (max-width: 768px) {
    .verification-phases {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .verification-header {
        flex-direction: column;
        gap: 8px;
    }

    .verification-ids {
        gap: 8px;
    }

    .verification-actions {
        gap: 6px;
    }

    .compact-action-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Professional Image Modal Styles */
#image-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
}

.image-modal-container {
    width: 95vw;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.image-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.image-modal-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.image-modal-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.image-modal-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.image-modal-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.image-modal-btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.image-modal-btn-primary {
    background: #3b82f6;
    color: white;
}

.image-modal-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.image-modal-btn-close {
    background: #ef4444;
    color: white;
}

.image-modal-btn-close:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.image-modal-body {
    flex: 1;
    padding: 20px;
    background: #f8fafc;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border-radius: 8px;
}

.modal-image:hover {
    transform: scale(1.02);
}

.image-modal-footer {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-modal-actions {
    display: flex;
    gap: 12px;
}

.image-modal-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.image-modal-action-primary {
    background: #3b82f6;
    color: white;
}

.image-modal-action-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.image-modal-action-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.image-modal-action-secondary:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.image-modal-hint {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-modal-container {
        width: 98vw;
        height: 95vh;
        border-radius: 12px;
    }

    .image-modal-header {
        padding: 16px 20px;
    }

    .image-modal-body {
        padding: 16px;
    }

    .image-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .image-modal-actions {
        justify-content: center;
    }
}

/* Step-by-Step Setup Styles */
.setup-steps {
    max-width: 100%;
    margin: 0 auto;
}

.step-item {
    display: none;
    padding: 24px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    min-height: auto;
}

.step-item.active {
    display: block;
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.step-description {
    color: #6b7280;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.step-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
}

.step-warning i {
    color: #f59e0b;
    font-size: 18px;
}

.step-help {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.step-help p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #0c4a6e;
}

.step-help ul {
    margin: 0;
    padding-left: 20px;
    color: #0c4a6e;
}

.step-help li {
    margin-bottom: 4px;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.step-form {
    margin-top: 20px;
}

.step-form .form-group {
    margin-bottom: 20px;
}

.step-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.step-form .form-input,
.step-form .form-select,
.step-form .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.step-form .form-input:focus,
.step-form .form-select:focus,
.step-form .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.step-form .form-hint {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Immutable Links Review - Compact Design */
.immutable-link-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.immutable-link-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.immutable-link-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.immutable-link-card .header-left {
    flex: 1;
}

.immutable-link-card .task-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.immutable-link-card .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.immutable-link-card .user-email {
    color: #6b7280;
    font-weight: 500;
}

.immutable-link-card .questa-id {
    color: #9ca3af;
    background: #f9fafb;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.immutable-link-card .header-right {
    display: flex;
    align-items: center;
}

.immutable-link-card .submission-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 6px;
}

.immutable-link-card .card-content {
    padding: 16px 20px;
}

.immutable-link-card .link-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.immutable-link-card .link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.immutable-link-card .link-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.immutable-link-card .copy-link-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.immutable-link-card .copy-link-btn:hover {
    background: #2563eb;
}

.immutable-link-card .link-preview {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
}

.immutable-link-card .link-text {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #374151;
    word-break: break-all;
    line-height: 1.4;
}

.immutable-link-card .card-actions {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.immutable-link-card .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.immutable-link-card .approve-btn {
    background: #10b981;
    color: white;
}

.immutable-link-card .approve-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.immutable-link-card .reject-btn {
    background: #ef4444;
    color: white;
}

.immutable-link-card .reject-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.immutable-link-card .action-btn i {
    font-size: 16px;
}

.immutable-link-card .action-btn span {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .immutable-link-card .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .immutable-link-card .header-right {
        align-self: flex-end;
    }

    .immutable-link-card .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .immutable-link-card .card-actions {
        flex-direction: column;
    }
}

/* Quest Completion Cards */
.quest-completion-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.quest-completion-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.quest-completion-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.quest-completion-card .header-left {
    flex: 1;
}

.quest-completion-card .task-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.quest-completion-card .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.quest-completion-card .user-email {
    color: #6b7280;
    font-weight: 500;
}

.quest-completion-card .questa-id {
    color: #9ca3af;
    background: #f9fafb;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.quest-completion-card .header-right {
    display: flex;
    align-items: center;
}

.quest-completion-card .completion-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.quest-completion-card .card-content {
    padding: 16px 20px;
}

.quest-completion-card .completion-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.quest-completion-card .reward-info,
.quest-completion-card .completion-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.quest-completion-card .reward-label,
.quest-completion-card .type-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quest-completion-card .reward-amount {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
}

.quest-completion-card .type-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Auto-Rejected Verification Styles */
.auto-rejected {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.auto-reject-indicator {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.auto-reject-badge {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.compact-phase-card.auto-rejected {
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.compact-phase-card.auto-rejected .phase-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

/* Auto-Rejection Notification Styles */
.auto-rejected-notification {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.auto-reject-icon {
    background: #ef4444;
    color: white;
}

.auto-reject-details {
    background: #fecaca;
    border: 1px solid #f87171;
    border-radius: 6px;
    padding: 8px;
    margin: 8px 0;
}

.auto-reject-task,
.auto-reject-gameid {
    font-size: 0.875rem;
    color: #7f1d1d;
    font-weight: 500;
}

.auto-reject-task {
    margin-bottom: 4px;
}

.auto-reject-gameid {
    font-family: 'Courier New', monospace;
}

/* Quest Limit Cards */
.quest-limit-card {
    margin-bottom: 8px;
}

.quest-limit-card .flex {
    transition: all 0.2s ease;
}

.quest-limit-card:hover .flex {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.quest-limit-card input[type="number"] {
    font-weight: 600;
    color: #374151;
}

.quest-limit-card input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design for Quest Completions */
@media (max-width: 768px) {
    .quest-completion-card .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .quest-completion-card .header-right {
        align-self: flex-end;
    }

    .quest-completion-card .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .quest-completion-card .completion-details {
        flex-direction: column;
        gap: 12px;
    }

    .quest-limit-card .flex {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .quest-limit-card .flex>div:last-child {
        width: 100%;
        justify-content: space-between;
    }
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}