/* ================================
   TASKS SYSTEM - MODERN DESIGN V1
   Account Management Style
   ================================ */

:root {
    --primary-bg: #0f141a;
    --secondary-bg: #1a2332;
    --border-color: #2a3440;
    --accent-cyan: #00ffaa;
    --text-light: #e6f8ff;
    --text-muted: #a8b3c2;
    --error-red: #ff4444;
    --success-green: #7AF972;
    --warning-yellow: #F9F572;
    --task-easy: #52c41a;
    --task-medium: #faad14;
    --task-hard: #f5222d;
    --task-veryhard: #722ed1;
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.tasks-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================================
   HEADER
   ================================ */

.tasks-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tasks-logo {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 170, 0.3));
}

.tasks-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(0, 255, 170, 0.2);
}

.tasks-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ================================
   INFO BOX
   ================================ */

.info-box {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.1) 0%, rgba(0, 255, 170, 0.05) 100%);
    border: 1px solid rgba(0, 255, 170, 0.2);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.5));
}

.info-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.info-text strong {
    color: var(--accent-cyan);
}

/* ================================
   STATS GRID
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 170, 0.15);
    border-color: var(--accent-cyan);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   TASK SECTION
   ================================ */

.task-section {
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
}

.task-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
    border-bottom: 2px solid var(--border-color);
}

.task-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-title.easy {
    color: var(--task-easy);
}

.task-title.medium {
    color: var(--task-medium);
}

.task-title.hard {
    color: var(--task-hard);
}

.task-title.veryhard {
    color: var(--task-veryhard);
}

.task-icon {
    font-size: 28px;
}

.task-content {
    padding: 24px;
}

/* ================================
   TASK TABLE
   ================================ */

.task-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--primary-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.task-table thead tr {
    background: linear-gradient(135deg, #1a2332 0%, #141c28 100%);
}

.task-table thead th {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.task-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.task-table tbody tr:last-child {
    border-bottom: none;
}

.task-table tbody tr:hover {
    background: rgba(0, 255, 170, 0.05);
    transform: scale(1.002);
}

.task-table tbody td {
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 14px;
}

.task-name {
    font-weight: 600;
    color: var(--text-light);
}

.task-amount {
    color: var(--accent-cyan);
    font-weight: 600;
}

.task-reward {
    color: var(--text-muted);
}

.new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(255, 68, 68, 0.1) 100%);
    border: 1px solid var(--error-red);
    border-radius: 4px;
    color: var(--error-red);
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

.task-section {
    animation: slideInUp 0.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.task-section:nth-child(1) { animation-delay: 0s; }
.task-section:nth-child(2) { animation-delay: 0.05s; }
.task-section:nth-child(3) { animation-delay: 0.1s; }
.task-section:nth-child(4) { animation-delay: 0.15s; }
.task-section:nth-child(5) { animation-delay: 0.2s; }

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media screen and (max-width: 1024px) {
    .tasks-container {
        padding: 16px;
    }
    
    .tasks-header {
        padding: 30px 16px;
    }
    
    .tasks-title {
        font-size: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .tasks-title {
        font-size: 26px;
    }
    
    .tasks-subtitle {
        font-size: 14px;
    }
    
    .task-header {
        padding: 16px 20px;
    }
    
    .task-title {
        font-size: 20px;
    }
    
    .task-content {
        padding: 16px;
    }
    
    .task-table {
        font-size: 13px;
    }
    
    .task-table thead th {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .task-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .tasks-container {
        padding: 12px;
    }
    
    .tasks-header {
        padding: 24px 12px;
    }
    
    .tasks-logo {
        font-size: 48px;
    }
    
    .tasks-title {
        font-size: 22px;
    }
    
    .tasks-subtitle {
        font-size: 13px;
    }
    
    .info-box {
        padding: 16px;
        gap: 12px;
    }
    
    .info-icon {
        font-size: 20px;
    }
    
    .info-text {
        font-size: 14px;
    }
    
    .task-section {
        margin-bottom: 20px;
    }
    
    .task-header {
        padding: 14px 16px;
    }
    
    .task-title {
        font-size: 18px;
    }
    
    .task-icon {
        font-size: 24px;
    }
    
    .task-content {
        padding: 12px;
    }
    
    .task-table {
        font-size: 12px;
    }
    
    .task-table thead th {
        padding: 8px 8px;
        font-size: 11px;
    }
    
    .task-table tbody td {
        padding: 8px 8px;
        font-size: 12px;
    }
    
    /* Hide amount column on mobile */
    .task-table thead th:nth-child(2),
    .task-table tbody td:nth-child(2) {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .new-badge {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        text-align: center;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ================================
   LOCATION IMAGE
   ================================ */

.location-image {
    max-width: 100%;
    height: auto;
}

/* ================================
   SMALL TABLE
   ================================ */

.small-table {
    font-size: 12px;
}
