/**
 * Notification Modal Styles
 * Professional styling for the notification modal that replaces browser alerts
 */

/* Base notification modal styling */
#notificationModal .modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#notificationModal .modal-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

#notificationModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

#notificationModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
}

#notificationModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

#notificationModal .modal-footer .btn {
    min-width: 80px;
    font-weight: 500;
}

/* Success notification */
.notification-modal-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.notification-modal-success .modern-close-btn {
    color: #155724;
}

.notification-modal-success .modern-close-btn:hover {
    color: #0b2e13;
    background-color: rgba(21, 87, 36, 0.1);
}

/* Error notification */
.notification-modal-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.notification-modal-error .modern-close-btn {
    color: #721c24;
}

.notification-modal-error .modern-close-btn:hover {
    color: #491217;
    background-color: rgba(114, 28, 36, 0.1);
}

/* Info notification */
.notification-modal-info {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
}

.notification-modal-info .modern-close-btn {
    color: #004085;
}

.notification-modal-info .modern-close-btn:hover {
    color: #002752;
    background-color: rgba(0, 64, 133, 0.1);
}

/* Warning notification */
.notification-modal-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

.notification-modal-warning .modern-close-btn {
    color: #856404;
}

.notification-modal-warning .modern-close-btn:hover {
    color: #533f03;
    background-color: rgba(133, 100, 4, 0.1);
}

/* Icon styling */
#notificationModalIcon {
    font-size: 1.25rem;
}

/* Close button - reuse modern close button styling */
#notificationModal .modern-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: none;
    opacity: 0.8;
    padding: 0.75rem;
    margin: -0.75rem -0.75rem -0.75rem auto;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notificationModal .modern-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#notificationModal .modern-close-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

#notificationModal .modern-close-btn:active {
    transform: scale(0.95);
}

#notificationModal .modern-close-btn i {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
}

#notificationModal .modern-close-btn:hover i {
    transform: rotate(90deg);
}

/* Animation for modal appearance */
#notificationModal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.2s ease-out;
}

#notificationModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #notificationModal .modal-header {
        padding: 1rem 1.25rem;
    }

    #notificationModal .modal-body {
        padding: 1.25rem;
    }

    #notificationModal .modal-footer {
        padding: 0.875rem 1.25rem;
    }

    #notificationModal .modern-close-btn {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.5rem;
        margin: -0.5rem -0.5rem -0.5rem auto;
    }
}
