/* customPopup.css */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
}


.custom-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.custom-popup-title {
    font-size: 1.5em;
    margin: 0;
}

.custom-popup-close {
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
}

.custom-popup-close:hover {
    color: #333;
}

.custom-popup-content {
    max-height: 400px;
    overflow-y: auto;
}

.custom-popup-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.custom-popup-button {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 2px;
}

.custom-popup-button:hover {
    background-color: #0056b3;
}

.custom-popup-button.cancel {
    background-color: #6c757d;
}

.custom-popup-button.cancel:hover {
    background-color: #5a6268;
}

.custom-popup-button:focus {
    outline: none;
}

.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.custom-popup.hidden {
    display: none;
}

.custom-popup.visible {
    display: block;
}

.custom-popup .error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.custom-popup .success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.custom-popup .info-message {
    color: #17a2b8;
    font-weight: bold;
    margin-top: 10px;
}

.custom-popup .warning-message {
    color: #ffc107;
    font-weight: bold;
    margin-top: 10px;
}

.custom-popup .loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}