/* Floating Success/Error Notification Styles */

.success-notification,
.error-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 380px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.success-notification::before,
.error-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

.error-notification::before {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.success-notification.show,
.error-notification.show {
    right: 30px;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    from {
        right: -400px;
        opacity: 0;
    }
    to {
        right: 30px;
        opacity: 1;
    }
}

.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.error-notification .notification-icon {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.4);
}

.notification-icon i {
    font-size: 24px;
    color: #000;
}

.error-notification .notification-icon i {
    color: #fff;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-family: 'Montserrat', sans-serif;
}

.notification-close {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #999;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    transform: rotate(90deg);
}

.notification-close i {
    font-size: 16px;
}

/* Progress bar animation */
.success-notification::after,
.error-notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #FFC107 100%);
    animation: progressBar 5s linear;
}

.error-notification::after {
    background: linear-gradient(90deg, #ff4444 0%, #cc0000 100%);
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Dark Mode Support */
body.dark-mode .success-notification,
body.dark-mode .error-notification {
    background: #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .notification-content h4 {
    color: #FFD700;
}

body.dark-mode .notification-content p {
    color: #ccc;
}

body.dark-mode .notification-close {
    color: #ccc;
}

body.dark-mode .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
}

/* Responsive */
@media (max-width: 576px) {
    .success-notification,
    .error-notification {
        width: calc(100% - 40px);
        right: -100%;
        padding: 20px;
    }
    
    .success-notification.show,
    .error-notification.show {
        right: 20px;
    }
    
    @keyframes slideInRight {
        from {
            right: -100%;
            opacity: 0;
        }
        to {
            right: 20px;
            opacity: 1;
        }
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-icon i {
        font-size: 20px;
    }
    
    .notification-content h4 {
        font-size: 16px;
    }
    
    .notification-content p {
        font-size: 13px;
    }
}

/* Multiple notifications stacking */
.success-notification:nth-of-type(2),
.error-notification:nth-of-type(2) {
    top: 220px;
}

.success-notification:nth-of-type(3),
.error-notification:nth-of-type(3) {
    top: 340px;
}