/* ===== Export PDF Modal ===== */

#modal-export-pdf-choice .modal-container {
    max-width: 500px;
}

#modal-export-pdf-choice .modal-body {
    background: var(--bg-surface);
    border-radius: 0 0 14px 14px;
}

#modal-export-pdf-choice .export-step-text {
    margin-bottom: 15px;
    color: var(--text-primary);
}

#modal-export-pdf-choice .export-buttons-row {
    display: flex;
    gap: 10px;
}

#pdf-titolo::placeholder,
#pdf-descrizione::placeholder,
#pdf-tags::placeholder{
    color: var(--text-primary);
}

#modal-export-pdf-choice .export-pasti-list {
    max-height: 300px;
    overflow-y: auto;
}

#modal-export-pdf-choice .export-pasti-label {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    color: var(--text-primary);
}

#modal-export-pdf-choice .export-pasti-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

#modal-export-pdf-choice .export-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

#modal-export-pdf-choice .export-buttons-row--bottom {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ===== Loading Modal PDF ===== */

.loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-heavy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loading-modal-content {
    background: var(--bg-surface);
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex-shrink: 0;
    aspect-ratio: 1;
    border: 4px solid var(--border-medium);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loading-submessage {
    font-size: 14px;
    color: var(--text-secondary);
}