/* Tasks CSS - Scoped to Task Management */

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Task Type Toggle (Radio as Tabs) */
.task-type-toogle-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    width: fit-content;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .task-type-toogle-group {
        width: 100%;
        gap: 0.25rem;
    }

    .type-label {
        text-align: center;
        flex: 1;
        display: block;
        padding: 0.5rem 0.5rem;
    }
}

.type-radio {
    display: none;
}

.type-label {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.type-radio:checked+.type-label {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Recurring Section Styling */
.recurring-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

/* Days Selector (Circles) */
.days-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .days-selector {
        justify-content: center;
    }
}

.day-checkbox {
    display: none;
}

.day-label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    transition: all 0.2s ease;
    user-select: none;
}

.day-checkbox:checked+.day-label {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

.day-label:hover {
    border-color: var(--color-primary);
}

/* Time & Duration Grid */
.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .time-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Month Grid (1-31) */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.month-day-option {
    display: none;
}

.month-day-label {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: white;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.month-day-option:checked+.month-day-label {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

/* Specific style for Last Day button */
.month-day-label-end {
    grid-column: span 2;
    width: auto !important;
    height: 32px;
    /* Maintain height */
    padding: 0 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    color: var(--color-primary);
}

.month-day-option:checked+.month-day-label-end {
    color: white !important;
}

/* Mobile optimizations for Recurring section container */
@media (max-width: 480px) {
    .recurring-section {
        padding: 0.75rem;
    }

    .month-day-label {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .month-grid {
        gap: 0.25rem;
    }
}