/* 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: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--border, #f2e5d8);
}

.notification-overlay.show .notification-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dialog Icon */
.notification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Success Type */
.notification-dialog.success .notification-icon {
    background: var(--accent-soft, #fff3e0);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.15);
    color: var(--accent, #ff8c00);
}

/* Error Type */
.notification-dialog.error .notification-icon {
    background: #ffebee;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

/* Warning Type */
.notification-dialog.warning .notification-icon {
    background: #fff3e0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    color: var(--accent, #ff8c00);
}

/* Info Type */
.notification-dialog.info .notification-icon {
    background: #ffebee;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

/* Dialog Content */
.notification-content {
    text-align: center;
}

.notification-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink, #1e293b);
    font-family: var(--font-display, 'Inter', 'Segoe UI', sans-serif);
}

.notification-message {
    font-size: 15px;
    color: var(--ink-soft, #475569);
    line-height: 1.6;
    margin-bottom: 28px;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

/* Actions Row */
.notification-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.notification-action {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.notification-action.primary {
    background: linear-gradient(135deg, var(--accent, #ff8c00) 0%, var(--accent-hover, #e67700) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.notification-action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

.notification-action.secondary {
    background: var(--surface, #fff8f2);
    color: var(--ink, #1e293b);
    border: 1px solid var(--border, #f2e5d8);
}

.notification-action.secondary:hover {
    background: var(--accent-soft, #fff3e0);
}

/* Close Button */
.notification-close {
    background: transparent;
    color: var(--slate, #64748b);
    border: 1px solid var(--border, #f2e5d8);
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

.notification-close:hover {
    background: var(--surface, #fff8f2);
    color: var(--ink, #1e293b);
}

/* Top Close Icon */
.notification-close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    color: var(--mid, #94a3b8);
}

.notification-close-icon:hover {
    background: var(--surface, #fff8f2);
    color: var(--ink, #1e293b);
}

/* Toast Notification (Alternative Style - Top Right) */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 22px;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(420px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-left-color: var(--accent, #ff8c00);
}

.notification-toast.error {
    border-left-color: #d32f2f;
}

.notification-toast.warning {
    border-left-color: var(--accent, #ff8c00);
}

.notification-toast.info {
    border-left-color: #d32f2f;
}

.notification-toast .toast-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.notification-toast.success .toast-icon {
    color: var(--accent, #ff8c00);
}

.notification-toast.error .toast-icon {
    color: #d32f2f;
}

.notification-toast.warning .toast-icon {
    color: var(--accent, #ff8c00);
}

.notification-toast.info .toast-icon {
    color: #d32f2f;
}

.notification-toast .toast-content {
    flex: 1;
}

.notification-toast .toast-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink, #1e293b);
    margin-bottom: 4px;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

.notification-toast .toast-message {
    font-size: 13px;
    color: var(--ink-soft, #475569);
    line-height: 1.4;
    font-family: var(--font-body, 'Inter', 'Segoe UI', sans-serif);
}

.notification-toast .toast-close {
    font-size: 18px;
    color: var(--mid, #94a3b8);
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-toast .toast-close:hover {
    color: var(--ink, #1e293b);
}

/* 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;
}
