/* Mátyás Tábor Application Form Styles */

/* Primary button */
.fi-btn.fi-color-primary {
    color: white !important;
    background-color: rgb(2, 132, 199) !important;
}

.fi-btn.fi-color-primary:hover {
    color: white !important;
    background-color: rgb(3, 105, 161) !important;
}

/* Top toolbar */
.fi-topbar {
    background-color: rgb(2, 132, 199) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Turnus display - FULL WIDTH */
[wire\:key*="period_ids"] .fi-fo-checkbox-list,
[wire\:key*="period_ids"] .fi-fo-checkbox-list *:not(input):not(svg):not(path):not(.period-name):not(.period-date):not(.period-status) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

[wire\:key*="period_ids"] .fi-fo-checkbox-list > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

[wire\:key*="period_ids"] .fi-fo-checkbox-list-option {
    display: flex !important;
    align-items: center !important;
}

[wire\:key*="period_ids"] .fi-fo-checkbox-list-option > label {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    gap: 0.75rem !important;
}

[wire\:key*="period_ids"] .fi-fo-checkbox-list-option-label {
    flex: 1 !important;
}

.period-option {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.fi-fo-checkbox-list-option:has(.period-available) label,
.fi-fo-checkbox-list-option:has(.period-available) input {
    cursor: pointer !important;
}

.period-name,
.period-date,
.period-status {
    width: auto !important;
    flex-shrink: 0 !important;
}

.period-option:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

/* Selected state */
.fi-fo-checkbox-list-option:has(input:checked) .period-option {
    background: linear-gradient(135deg, rgb(224, 242, 254) 0%, rgb(186, 230, 253) 100%) !important;
}

.fi-fo-checkbox-list-option:has(input:checked) .period-option:hover {
    background: linear-gradient(135deg, rgb(186, 230, 253) 0%, rgb(125, 211, 252) 100%) !important;
}

/* Full period - gray theme */
.period-option.period-full {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    cursor: not-allowed;
}

.period-option.period-full:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.fi-fo-checkbox-list-option:has(.period-full) label {
    cursor: not-allowed !important;
}

.fi-fo-checkbox-list-option:has(.period-full) input {
    cursor: not-allowed !important;
}

.fi-fo-checkbox-list-option:has(input:checked) .period-option.period-full {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

.fi-fo-checkbox-list-option:has(input:checked) .period-option.period-full:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
}

.period-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: rgb(3, 105, 161);
}

.period-full .period-name {
    color: #6b7280;
}

.period-date {
    font-size: 0.8rem;
    color: rgb(7, 89, 133);
}

.period-full .period-date {
    color: #9ca3af;
}

.period-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background-color: rgb(2, 132, 199);
    color: white;
    border-radius: 9999px;
    white-space: nowrap;
    font-weight: 600;
}

.period-full .period-status {
    background-color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .period-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.4rem 0.75rem;
    }

    .period-name {
        font-size: 0.875rem;
    }

    .period-date {
        font-size: 0.8rem;
    }

    .period-status {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
}

/* FilePond text override */
.filepond--drop-label label {
    font-size: 0 !important;
}

.filepond--drop-label label::after {
    content: 'Húzza ide a fájlokat vagy kattintson a tallózáshoz';
    font-size: 0.875rem;
}

/* Form actions - right aligned */
.mt-application-form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}
