/* Global Notification System */

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.notification-overlay.active {
    display: flex;
}

.notification-container {
    background: #ffffff;
    backdrop-filter: none;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.notification-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.notification-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.notification-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.notification-btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-emerald));
    color: var(--deep-space);
}

.notification-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.notification-btn-secondary {
    background: rgba(0, 247, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.notification-btn-secondary:hover {
    background: rgba(0, 247, 255, 0.25);
    border-color: rgba(0, 247, 255, 0.5);
}

/* Status-specific styles */

.notification-success .notification-icon {
    color: var(--neon-emerald);
}

.notification-success .notification-title {
    color: var(--neon-emerald);
}

.notification-success .notification-container::before {
    background: linear-gradient(90deg, transparent, var(--neon-emerald), transparent);
}

.notification-error .notification-icon {
    color: var(--error);
}

.notification-error .notification-title {
    color: var(--error);
}

.notification-error .notification-container::before {
    background: linear-gradient(90deg, transparent, var(--error), transparent);
}

.notification-warning .notification-icon {
    color: var(--warning);
}

.notification-warning .notification-title {
    color: var(--warning);
}

.notification-warning .notification-container::before {
    background: linear-gradient(90deg, transparent, var(--warning), transparent);
}

.notification-info .notification-icon {
    color: var(--neon-cyan);
}

.notification-info .notification-title {
    color: var(--neon-cyan);
}

.notification-info .notification-container::before {
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    to {
        transform: translateY(30px);
        opacity: 0;
    }
}

.notification-overlay.closing .notification-container {
    animation: slideDown 0.3s ease-out;
}

/* Responsive */

@media (max-width: 768px) {
    .notification-container {
        max-width: 90%;
        width: 95%;
        padding: 1.5rem;
    }

    .notification-title {
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notification-actions {
        flex-direction: column;
    }

    .notification-btn {
        width: 100%;
    }
}
