/* Estilos para notificações popup */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

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

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Variantes de notificação */
.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Notificação de tempo real */
.realtime-notification {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.realtime-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669, #8b5cf6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.realtime-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.realtime-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

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

.realtime-notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.realtime-notification-text {
    flex: 1;
}

.realtime-notification-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #fbbf24;
}

.realtime-notification-message {
    font-size: 13px;
    opacity: 0.9;
    margin: 0 0 2px 0;
    line-height: 1.4;
}

.realtime-notification-item {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
    margin: 0;
}

.realtime-notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.realtime-notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .realtime-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}
