/* Modal Notification System - Elegant & Professional */

.modal-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-notification {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-notification-overlay.show .modal-notification {
    transform: scale(1);
    opacity: 1;
}

.modal-notification-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.modal-notification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.modal-notification-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.2;
}

.modal-notification-icon i {
    position: relative;
    z-index: 1;
}

/* Success Modal */
.modal-notification.success .modal-notification-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.modal-notification.success .modal-notification-icon::before {
    background: #28a745;
    animation: pulse-success 2s infinite;
}

.modal-notification.success .modal-notification-title {
    color: #28a745;
}

/* Error Modal */
.modal-notification.error .modal-notification-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.modal-notification.error .modal-notification-icon::before {
    background: #dc3545;
    animation: pulse-error 2s infinite;
}

.modal-notification.error .modal-notification-title {
    color: #dc3545;
}

/* Warning Modal */
.modal-notification.warning .modal-notification-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #ffffff;
}

.modal-notification.warning .modal-notification-icon::before {
    background: #ffc107;
    animation: pulse-warning 2s infinite;
}

.modal-notification.warning .modal-notification-title {
    color: #ffc107;
}

/* Info Modal */
.modal-notification.info .modal-notification-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
}

.modal-notification.info .modal-notification-icon::before {
    background: #17a2b8;
    animation: pulse-info 2s infinite;
}

.modal-notification.info .modal-notification-title {
    color: #17a2b8;
}

.modal-notification-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px;
    font-family: var(--heading-font, "Poppins", sans-serif);
}

.modal-notification-body {
    padding: 0 30px 30px;
    text-align: center;
}

.modal-notification-message {
    color: #2c4964;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: var(--default-font, "Roboto", sans-serif);
}

.modal-notification-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-notification-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--default-font, "Roboto", sans-serif);
    min-width: 120px;
}

.modal-notification-btn-primary {
    background: linear-gradient(135deg, #1977cc 0%, #1565c0 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 119, 204, 0.3);
}

.modal-notification-btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 6px 16px rgba(25, 119, 204, 0.4);
    transform: translateY(-2px);
}

.modal-notification-btn-secondary {
    background: #f1f7fc;
    color: #2c4964;
    border: 2px solid #e0e0e0;
}

.modal-notification-btn-secondary:hover {
    background: #e0e0e0;
    border-color: #d0d0d0;
}

/* Success Button Variant */
.modal-notification.success .modal-notification-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-notification.success .modal-notification-btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Error Button Variant */
.modal-notification.error .modal-notification-btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-notification.error .modal-notification-btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

/* Pulse Animations */
@keyframes pulse-success {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes pulse-error {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes pulse-info {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-notification {
        max-width: 90%;
        margin: 20px;
    }

    .modal-notification-header {
        padding: 25px 20px 15px;
    }

    .modal-notification-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 15px;
    }

    .modal-notification-title {
        font-size: 20px;
    }

    .modal-notification-body {
        padding: 0 20px 25px;
    }

    .modal-notification-message {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .modal-notification-footer {
        padding: 0 20px 25px;
        flex-direction: column;
    }

    .modal-notification-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Accessibility */
.modal-notification-overlay:focus {
    outline: none;
}

.modal-notification-btn:focus {
    outline: 2px solid #1977cc;
    outline-offset: 2px;
}

/* Close button (optional) */
.modal-notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-notification-close:hover {
    background: #f8f9fa;
    color: #2c4964;
    transform: rotate(90deg);
}
