/* Custom Notification Styling */
#customNotificationModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#customNotificationModal .modal-header {
    border-bottom: 2px solid #dee2e6;
    padding: 1.5rem;
}

#customNotificationModal .modal-body {
    padding: 2rem 1.5rem;
}

#customNotificationModal .modal-footer {
    border-top: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Error Field Styling */
.field-error {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
    animation: shake 0.5s ease-in-out;
}

.field-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Error Message Styling */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.5rem;
    border-radius: 0.375rem;
    border-right: 4px solid #dc3545;
}

/* Shake Animation for Error Fields */
@keyframes shake {

    0%,
    20%,
    40%,
    60%,
    80% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
}

/* Modal Border Colors */
.modal-content.border-success {
    border: 3px solid #28a745;
}

.modal-content.border-danger {
    border: 3px solid #dc3545;
}

.modal-content.border-warning {
    border: 3px solid #ffc107;
}

.modal-content.border-info {
    border: 3px solid #17a2b8;
}

/* Success/Error Alert in Modal */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-right: 5px solid #dc3545;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}