/* ===================================
   MODAL SYSTEM
   =================================== */

/* Save Options Modal */
.save-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.save-modal {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.save-modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.save-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.save-modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.save-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.save-option {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.save-option:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.save-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
}

.save-option.pdf .save-option-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.save-option.png .save-option-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.save-option-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

.save-option-desc {
    font-size: 0.813rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.save-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Loading System */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}
