/* ============ TASKS COMPONENT STYLES ============ */
.tasks-section h2 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 2em;
}

/* Program selector card */
.task-program-selector {
    background: var(--light);
    padding: 22px 25px !important;
    border-radius: 16px !important;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.task-program-selector:hover {
    border-color: var(--primary);
}

.task-program-selector h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: var(--dark);
}

/* Playlist — vertical sidebar list */
.playlist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    max-height: 600px;
    overflow-y: auto;
}

.playlist-item {
    padding: 11px 18px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.88em;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2d3436;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: #f0eeff;
    color: var(--primary);
    padding-left: 24px;
}

.playlist-item.active {
    background: var(--primary);
    color: white;
}

/* Task detail panel */
.task-detail {
    min-height: 200px;
}

.task-detail .card {
    background: var(--light);
    padding: 28px;
    border-radius: 18px;
}

.task-detail .card h3 {
    margin: 10px 0 15px 0;
    color: var(--dark);
    font-size: 1.3em;
}

.task-detail .card p {
    margin: 12px 0;
    line-height: 1.7;
    color: #444;
}

.task-detail .card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.task-detail .card a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .tasks-section > div[style*="display:flex"] {
        flex-direction: column !important;
    }
    .playlist {
        max-width: 100% !important;
        flex: none !important;
        max-height: 220px;
    }
}