/* Real-time Notification Styles */
.donation-notification,
.subscription-notification,
.gift-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 15px;
    min-width: 250px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    border: 2px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.donation-notification {
    border-color: #FF9800;
}

.subscription-notification {
    border-color: #4CAF50;
}

.gift-notification {
    border-color: #E91E63;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #e68900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
    flex-shrink: 0;
}

.subscription-notification .notification-avatar {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.gift-notification .notification-avatar {
    background: linear-gradient(135deg, #E91E63, #c2185b);
    color: white;
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.subscription-notification .notification-amount {
    color: #4CAF50;
}

.gift-notification .notification-amount {
    color: #E91E63;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Light mode styles */
body.light-mode .donation-notification,
body.light-mode .subscription-notification,
body.light-mode .gift-notification {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .notification-name {
    color: #000;
}

body.light-mode .notification-avatar {
    color: #000;
}

/* Multiple notifications stacking */
.donation-notification:nth-child(2) {
    top: 90px;
}

.donation-notification:nth-child(3) {
    top: 160px;
}

.subscription-notification:nth-child(2) {
    top: 90px;
}

.subscription-notification:nth-child(3) {
    top: 160px;
}

.gift-notification:nth-child(2) {
    top: 90px;
}

.gift-notification:nth-child(3) {
    top: 160px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .donation-notification,
    .subscription-notification,
    .gift-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .notification-content {
        gap: 10px;
    }
    
    .notification-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .notification-name {
        font-size: 0.9rem;
    }
    
    .notification-amount {
        font-size: 0.9rem;
    }
}
