/* ===== TASK PAGE STYLES ===== */

/* Hero Banner */
.task-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #091e42 100%);
    color: #fff;
    padding: 120px 20px 70px;
    text-align: center;
    position: relative;
}

.task-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.task-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tab Navigation */
.task-tabs-wrapper {
    max-width: 1100px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.task-tab-nav {
    display: flex;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 32, 91, 0.1);
    overflow: hidden;
    border-bottom: 3px solid #f1f5f9;
}

.task-tab-btn {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: #f8fafc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #044298;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    border-bottom: 3px solid transparent;
}

.task-tab-btn i {
    font-size: 1.1rem;
}

.task-tab-btn:hover {
    color: var(--secondary-color);
    background: #f1f5f9;
}

.task-tab-btn.active {
    color: #fff;
    background: var(--primary-color);
    border-bottom: 3px solid #c41040;
}

.task-tab-btn.active i {
    color: #fff;
}

/* Tab Content Container */
.task-tab-content-wrapper {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.task-tab-panel {
    display: none;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 35px rgba(0, 32, 91, 0.09);
    padding: 40px 45px;
    animation: fadeInPanel 0.35s ease;
}

.task-tab-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guide Step Cards */
.guide-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}



/* Submission Step Expandable Cards */
.submission-step-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.submission-step-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 32, 91, 0.08);
    border-color: #cbd5e1;
}

.submission-step-accordion.open {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(231, 25, 79, 0.1);
}

.submission-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s ease;
}

.submission-step-header:hover {
    background: #f1f5f9;
}

.submission-step-accordion.open .submission-step-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.submission-step-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.submission-step-left h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.submission-step-left .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--primary-color), #c41040);
    color: #fff;
    border-radius: 22px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(231, 25, 79, 0.25);
    flex-shrink: 0;
}

.submission-step-accordion.open .submission-step-left .step-number {
    background: linear-gradient(135deg, var(--secondary-color), #091e42);
    box-shadow: 0 3px 10px rgba(0, 32, 91, 0.25);
}

.submission-chevron {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
}

.submission-step-accordion.open .submission-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.submission-step-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fff;
}

.submission-step-accordion.open .submission-step-body {
    max-height: 500px;
}

.submission-step-inner {
    padding: 18px 24px 22px;
}

.submission-step-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submission-step-inner ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}

.submission-step-inner ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Submit Tasks Now Button */
.submit-tasks-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 42px;
    background: linear-gradient(135deg, var(--primary-color), #c41040);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(231, 25, 79, 0.35);
    transition: all 0.3s ease;
}

.submit-tasks-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 25, 79, 0.45);
    background: linear-gradient(135deg, #c41040, var(--secondary-color));
}

.submit-tasks-btn i {
    font-size: 1rem;
}

/* Note callout box */
.task-note-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 24px;
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.task-note-box i {
    color: #d97706;
    font-size: 1.1rem;
    margin-top: 2px;
}

.task-note-box p {
    color: #92400e;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Info Callout (blue) */
.task-info-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 24px;
    margin-top: 20px;
}

.task-info-box p {
    color: #1e40af;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.7;
    margin: 0 0 4px;
}

.task-info-box p:last-child {
    margin-bottom: 0;
}

/* Domain Accordion */
.domain-accordion {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.domain-accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 32, 91, 0.08);
}

.domain-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
    border: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.domain-accordion-header:hover {
    background: #f1f5f9;
}

.domain-accordion-header .domain-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.domain-accordion-header .domain-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.domain-accordion-header .domain-icon.webdev { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.domain-accordion-header .domain-icon.fullstack { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.domain-accordion-header .domain-icon.android { background: linear-gradient(135deg, #10b981, #059669); }
.domain-accordion-header .domain-icon.datascience { background: linear-gradient(135deg, #f59e0b, #d97706); }
.domain-accordion-header .domain-icon.dataanalyst { background: linear-gradient(135deg, #0284c7, #0369a1); }
.domain-accordion-header .domain-icon.java { background: linear-gradient(135deg, #ef4444, #dc2626); }
.domain-accordion-header .domain-icon.python { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.domain-accordion-header .domain-icon.cpp { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.domain-accordion-header .domain-icon.cyber { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.domain-accordion-header .domain-icon.ai { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.domain-accordion-header .domain-icon.ml { background: linear-gradient(135deg, #a855f7, #9333ea); }

.domain-accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.domain-accordion-header .chevron {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.domain-accordion.open .domain-accordion-header .chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.domain-accordion.open .domain-accordion-header {
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.domain-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
}

.domain-accordion.open .domain-accordion-body {
    max-height: 3000px;
}

.domain-accordion-inner {
    padding: 24px;
}

/* Level badge */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.level-badge.level-1 {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.level-badge.level-2 {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.level-badge i {
    font-size: 0.75rem;
}

/* Task Card */
.task-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.task-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 32, 91, 0.06);
}

.task-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-card h4 .task-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), #c41040);
    color: #fff;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.task-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.task-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Level separator */
.level-separator {
    border: none;
    border-top: 2px dashed #e2e8f0;
    margin: 28px 0;
}

/* Project Themes Box */
.project-themes-box {
    margin-top: 16px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
}

.project-themes-box h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-themes-box h5 i {
    color: #f59e0b;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.theme-tag:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.theme-tag i {
    font-size: 0.75rem;
    color: #0284c7;
}

/* Tab Footer Navigation Controls */
.task-panel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.task-panel-nav.align-right {
    justify-content: flex-end;
}

.task-panel-nav-left,
.task-panel-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.task-step-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.task-step-indicator i {
    color: var(--primary-color);
}

.task-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.task-nav-btn.next {
    background: linear-gradient(135deg, var(--primary-color), #c41040);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(231, 25, 79, 0.28);
}

.task-nav-btn.next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(231, 25, 79, 0.4);
    background: linear-gradient(135deg, #c41040, #9f0d32);
}

.task-nav-btn.next i {
    transition: transform 0.25s ease;
}

.task-nav-btn.next:hover i {
    transform: translateX(4px);
}

.task-nav-btn.prev {
    background: #f8fafc;
    color: var(--secondary-color);
    border: 1.5px solid #cbd5e1;
}

.task-nav-btn.prev:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #091e42;
    transform: translateY(-2px);
}

.task-nav-btn.prev i {
    transition: transform 0.25s ease;
}

.task-nav-btn.prev:hover i {
    transform: translateX(-4px);
}

.task-nav-btn.submit-action {
    background: linear-gradient(135deg, var(--secondary-color), #091e42);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 32, 91, 0.25);
}

.task-nav-btn.submit-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 32, 91, 0.35);
    background: linear-gradient(135deg, #091e42, #041026);
}

/* Responsive */
@media (max-width: 768px) {
    .task-hero {
        padding: 100px 15px 50px;
    }

    .task-hero h1 {
        font-size: 1.8rem;
    }

    .task-tab-nav {
        flex-direction: column;
        border-radius: 16px 16px 0 0;
    }

    .task-tab-btn {
        padding: 14px 16px;
        font-size: 0.88rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .task-tab-btn::after {
        bottom: -1px;
        height: 2px;
    }

    .task-tab-panel {
        padding: 24px 20px;
        border-radius: 0 0 14px 14px;
    }

    .task-panel-nav {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .task-panel-nav-left,
    .task-panel-nav-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .task-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .task-step-indicator {
        width: 100%;
        justify-content: center;
    }

    .guide-steps-grid {
        grid-template-columns: 1fr;
    }

    .domain-accordion-header {
        padding: 14px 18px;
    }

    .domain-accordion-header h3 {
        font-size: 0.95rem;
    }

    .domain-accordion-inner {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .task-hero h1 {
        font-size: 1.5rem;
    }

    .task-hero p {
        font-size: 0.95rem;
    }

    .task-tab-btn {
        font-size: 0.82rem;
        gap: 6px;
    }
}

