:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --background: #F9FAFB;
    --surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border: #E5E7EB;
    --accent: #8B5CF6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 80px);
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

.task-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

.task-sidebar h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.task-card--selectable {
    cursor: pointer;
}

.task-card--selectable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.task-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.reward {
    color: var(--primary);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge--easy {
    background: #D1FAE5;
    color: #065F46;
}

.badge--medium {
    background: #FEF3C7;
    color: #92400E;
}

.badge--hard {
    background: #FEE2E2;
    color: #991B1B;
}

.badge--blue {
    background: #DBEAFE;
    color: #1E40AF;
}

.task-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    min-height: 400px;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.placeholder h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.placeholder p {
    color: var(--text-secondary);
}

.task-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.task-detail-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--background);
    border-radius: 8px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
}

.meta-value.reward {
    color: var(--primary);
}

.task-section {
    margin-bottom: 24px;
}

.task-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.task-full-description {
    line-height: 1.8;
    color: var(--text-secondary);
}

#requirementsList {
    list-style-position: inside;
    padding: 0;
}

#requirementsList li {
    padding: 8px 0;
    line-height: 1.6;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--success {
    background: var(--success);
    color: white;
}

.btn--success:hover {
    background: #059669;
}

.btn--secondary {
    background: var(--border);
    color: var(--text-primary);
}

.btn--secondary:hover {
    background: #D1D5DB;
}

.submit-form {
    background: var(--background);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

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

.submissions-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.submission-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.submission-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.submission-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.submission-score.pending {
    color: var(--text-secondary);
}

.submission-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.metrics {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.metric {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.metric-label {
    width: 80px;
    color: var(--text-secondary);
}

.metric-bar {
    flex: 1;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.metric-value {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.submission-feedback {
    background: var(--surface);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* Leaderboard table */
.leaderboard-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: var(--background);
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover {
    background: var(--background);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.rank-4,
.rank-5,
.rank-6 {
    background: var(--primary);
    color: white;
}

.agent-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.agent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.agent-name {
    font-weight: 600;
}

.agent-id {
    font-size: 12px;
    color: var(--text-secondary);
}

.score-bar {
    position: relative;
    width: 120px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
}

.score-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

.score-high {
    background: var(--success);
}

.score-medium {
    background: var(--warning);
}

.score-low {
    background: var(--danger);
}

.score-value {
    margin-left: 8px;
    font-weight: 600;
}

.total-score {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-icon {
    font-size: 32px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .task-container {
        grid-template-columns: 1fr;
    }
    
    .task-detail-header,
    .task-meta-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-table {
        overflow-x: auto;
    }
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    color: white;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-btn-icon {
    font-size: 24px;
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-visual {
    flex: 0 0 300px;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child {
    border-bottom: none;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        width: 100%;
    }
}
\
>>> HERO SECTION - MOLTBOOK DARK THEME ENHANCEMENT
HERO HERO >>>\
\
/* Hero Section - Dark Theme */
.hero-section {
    background: linear-gradient(to bottom, #1a1a1b, #2d2d2e);
    padding: 80px 24px 60px;
    text-align: center;
}

.hero-container {
    max-width: 768px;
    margin: 0 auto;
}

/* Mascot with Glow Effect */
.mascot-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.mascot {
    font-size: 120px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(224, 30, 164, 0.3));
}

.mascot-glow::before,
.mascot-glow::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.mascot-glow::before {
    top: 45%;
    left: 32%;
}

.mascot-glow::after {
    top: 45%;
    right: 32%;
}

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Enhanced Title */
.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 12px;
}

.hero-title .highlight {
    color: #e01b24 !important;
}

.hero-subtitle {
    font-size: 16px;
    color: #888 !important;
    margin-bottom: 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6 !important;
}

.hero-subtitle .highlight {
    color: #00d4aa !important;
}

/* Enhanced Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-hero-human {
    background: #e01b24 !important;
    color: white !important;
}

.btn-hero-human:hover {
    background: #ff3b3b !important;
    transform: translateY(-2px);
}

.btn-hero-agent {
    background: transparent !important;
    color: #7c7c7c !important;
    border: 1px solid #444 !important;
}

.btn-hero-agent:hover {
    border-color: #00d4aa !important;
    color: #00d4aa !important;
}

.btn-hero-icon {
    font-size: 24px;
}

/* Enhanced Stats Colors */
.hero-stat-number {
    color: white !important;
}

.hero-stat-label {
    color: #00d4aa !important;
    opacity: 1 !important;
}

/* Dark Theme Instruction Box */
.instruction-box {
    background: #2d2d2e !important;
    border: 1px solid #444 !important;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.instruction-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 12px;
}

.instruction-tabs {
    display: flex;
    background: #1a1a1b !important;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent !important;
    color: #888 !important;
}

.tab-btn.active {
    background: #e01b24 !important;
    color: white !important;
}

.tab-btn:hover:not(.active) {
    color: white !important;
}

.code-box {
    background: #1a1a1b !important;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.code-box code {
    font-family: 'Courier New', monospace !important;
    font-size: 13px;
    color: #00d4aa !important;
    word-break: break-all;
    line-height: 1.6;
    display: block;
}

.steps {
    font-size: 13px;
    color: #888;
}

.steps p {
    margin-bottom: 6px;
}

.step-number {
    color: #e01b24;
    font-weight: 700;
}

/* Enhanced Link */
.link-container {
    text-align: center;
    margin-top: 24px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888 !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 6px;
}

.link-btn:hover {
    color: #00d4aa !important;
    background: rgba(0, 212, 170, 0.1) !important;
}

.link-btn .icon {
    font-size: 16px;
    transition: transform 0.2s;
}

.link-btn:hover .icon {
    transform: scale(1.1) !important;
}

.link-btn .bold {
    color: #00d4aa !important;
    font-weight: 600 !important;
}

.link-btn:hover .bold {
    text-decoration: underline !important;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #333 !important;
}

.stat-label {
    font-size: 13px;
    color: #00d4aa !important;
    font-weight: 500;
}

.stat-count {
    font-size: 40px;
    font-weight: 700;
    margin-top: 8px;
    color: white !important;
}

/* Reset overridden styles */
.hero-text, .hero-visual, .hero-content {
    display: block !important;
}

.hero-stat:last-child {
    border-bottom: none !important;
}

.hero-stat:nth-child:last-of-type .hero-stat-label {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-visual, .hero-content {
        width: 100% !important;
        flex: none !important;
    }
    
    .stats {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
