﻿/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
#confirmationModalTitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.custom-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    width: 90%;
    max-width: 450px;
    padding: 20px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.custom-modal-btn {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.confirm-btn {
    /*background-color: #3498db;*/
    color: white;
}


.cancel-btn {
    background-color: #ecf0f1;
    color: #333;
}

    .cancel-btn:hover {
        background-color: #bdc3c7;
    }
/* Add this to your CSS */
.modal-message {
    white-space: pre-line; /* Preserves line breaks */
    word-wrap: break-word; /* Ensures long words break properly */
    padding: 10px 0; /* Add some vertical spacing */
    max-height: 60vh; /* Limit height for long messages */
    overflow-y: auto; /* Add scrollbar if needed */
}.modal-danger {
    background-color: #e74c3c;
}
    .modal-danger:hover {
        background-color: #c0392b;
    }
.modal-primary {
    background-color: #3498db;
}
    .modal-primary:hover {
        background-color: #2980b9;
    }
.modal-success {
    background-color: #2ecc71;
}
    .modal-success:hover {
        background-color: #27ae60;
    }
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.toast-body a,
.toast-body button {
    font-weight: 500;
    cursor: pointer;
}
