/* Modal styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2000; align-items: center; justify-content: center; } .modal.show { display: flex; } .modal-content { background-color: white; padding: 2rem; border-radius: 8px; width: 100%; max-width: 500px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .modal-header { padding: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .modal-header.error { color: var(--primary-red); } .modal-header:not(.error) { color: #28a745; /* Success green color */ } .modal-header h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: inherit; } .modal-header i { font-size: 1.2em; } .modal-body { margin-bottom: 1.5rem; } .modal-footer { display: flex; justify-content: flex-end; gap: 1rem; } .modal-footer button { padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; } .btn-primary { background-color: #007bff; color: white; } .btn-primary:hover { background-color: #0056b3; } .btn-secondary { background-color: #6c757d; color: white; } .btn-secondary:hover { background-color: #545b62; } /* Loading state */ .spinner { width: 30px; height: 30px; margin: 0 auto 10px; border: 3px solid #f3f3f3; border-top: 3px solid var(--primary-red); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-message { padding: 1rem; } button:disabled { opacity: 0.6; cursor: not-allowed; }