/* ===== TASKS PAGE STYLES ===== */
/* Task provider selection modal - Similar to surveys but CYAN theme (#06B6D4) */

/* ===== MODAL BASE ===== */
.tasks-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tasks-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tasks-modal-content {
    position: relative;
    background: var(--bg-secondary, #1C1917);
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 340px;
    border: 1px solid var(--border, #292524);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: tasksModalIn 0.25s ease-out;
}

@keyframes tasksModalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MODAL HEADER ===== */
.tasks-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.tasks-modal-icon-img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 12px auto;
}

.tasks-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #FAFAF9);
    margin: 0 0 4px 0;
}

.tasks-modal-header p {
    font-size: 13px;
    color: var(--text-secondary, #A8A29E);
    margin: 0;
    line-height: 1.4;
}

/* ===== PROVIDER BUTTONS ===== */
.tasks-provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.tasks-provider-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary, #292524);
    border: 1px solid var(--border, #292524);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tasks-provider-btn:hover {
    background: var(--surface-hover, #292524);
    border-color: #06B6D4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.tasks-provider-btn:hover .tasks-provider-arrow {
    color: #06B6D4;
}

.tasks-provider-btn:active {
    transform: scale(0.98);
}

/* Provider Logo */
.tasks-provider-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

/* Provider Name */
.tasks-provider-name {
    flex: 1;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #FAFAF9);
}

/* Provider Arrow */
.tasks-provider-arrow {
    color: var(--muted, #78716C);
    font-size: 18px;
    flex-shrink: 0;
}

/* Bonus Badge */
.tasks-bonus-badge {
    background: var(--bg-tertiary, #292524);
    color: var(--gold, #F59E0B);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== CLOSE BUTTON ===== */
.tasks-modal-close {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border, #292524);
    border-radius: 10px;
    color: var(--text-secondary, #A8A29E);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tasks-modal-close:hover {
    background: var(--bg-tertiary, #292524);
    color: var(--text, #FAFAF9);
}

/* Cyan theme for tasks (Grand Expedition color) */
.tasks-modal-close-blue {
    border-color: #06B6D4;
    color: #06B6D4;
}

.tasks-modal-close-blue:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #22D3EE;
}

/* ===== TOAST NOTIFICATION ===== */
.tasks-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary, #1C1917);
    color: var(--text, #FAFAF9);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border, #292524);
    z-index: 10000;
    animation: tasksToastIn 0.3s ease-out, tasksToastOut 0.3s ease-in 2.7s forwards;
}

@keyframes tasksToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes tasksToastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}