/* Notification Dialog Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Dialog Container */
.notification-dialog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-overlay.show .notification-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dialog Icon */
.notification-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 36px;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Success Type */
.notification-dialog.success .notification-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

/* Error Type */
.notification-dialog.error .notification-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
    color: white;
}

/* Warning Type */
.notification-dialog.warning .notification-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
    color: white;
}

/* Info Type */
.notification-dialog.info .notification-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    color: white;
}

/* Dialog Content */
.notification-content {
    text-align: center;
}

.notification-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.notification-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Actions Row */
.notification-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.notification-action {
    display: inline-block;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    transition: all 0.2s ease-in-out;
}

.notification-action.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.notification-action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.4);
}

.notification-action.secondary {
    background: #f1f4f8;
    color: #333;
    border: 1px solid #e2e8f0;
}

.notification-action.secondary:hover {
    background: #e9eef5;
}

/* Close Button */
.notification-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.notification-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.notification-close:active {
    transform: translateY(0);
}

/* Top Close Icon */
.notification-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: #666;
}

.notification-close-icon:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Toast Notification (Alternative Style - Top Right) */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-left-color: #4CAF50;
}

.notification-toast.error {
    border-left-color: #f44336;
}

.notification-toast.warning {
    border-left-color: #ff9800;
}

.notification-toast.info {
    border-left-color: #2196F3;
}

.notification-toast .toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-toast.success .toast-icon {
    color: #4CAF50;
}

.notification-toast.error .toast-icon {
    color: #f44336;
}

.notification-toast.warning .toast-icon {
    color: #ff9800;
}

.notification-toast.info .toast-icon {
    color: #2196F3;
}

.notification-toast .toast-content {
    flex: 1;
}

.notification-toast .toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.notification-toast .toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-toast .toast-close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-toast .toast-close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dialog {
        padding: 25px;
        max-width: 90%;
    }

    .notification-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

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

    .notification-message {
        font-size: 14px;
    }

    .notification-toast {
        right: 10px;
        top: 10px;
        max-width: calc(100% - 20px);
    }
}

/* Animation for auto-dismiss */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

.notification-toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}
