/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 153, 0, 0.3);
    z-index: 10000;
    width: 90%;
    max-width: 450px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.notification-popup.show {
    animation: popupFadeIn 0.3s ease-out forwards;
}

.notification-popup.hide {
    animation: popupFadeOut 0.3s ease-out forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.notification-popup h3 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(45deg, #ff9900, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-popup p {
    margin: 0;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1rem;
}

.notification-popup .close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.notification-popup .close-btn:hover,
.notification-popup .close-btn:focus {
    background: rgba(255, 153, 0, 0.3);
    transform: rotate(90deg);
    outline: 2px solid rgba(255, 153, 0, 0.5);
    outline-offset: 2px;
}

.notification-popup .close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.notification-popup button {
    background: linear-gradient(135deg, #ff9900, #ffcc00);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.notification-popup button:hover,
.notification-popup button:focus {
    background: linear-gradient(135deg, #ffaa00, #ffdd00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
    outline: 2px solid rgba(255, 153, 0, 0.5);
    outline-offset: 2px;
}

.notification-popup button:active {
    transform: translateY(0);
}

/* Error Message Styles */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #ff6b6b;
}

.error-message .error-icon {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* Success Message Styles */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #51cf66;
}

/* Loading State */
.notification-popup.loading button {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.notification-popup.loading button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (max-width: 480px) {
    .notification-popup {
        padding: 1.5rem 1rem;
        max-width: 95%;
        gap: 1rem;
    }
    
    .notification-popup h3 {
        font-size: 1.25rem;
    }
    
    .notification-popup p {
        font-size: 0.9rem;
    }
    
    .notification-popup button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

