/* Sistema de Notificações - Estilo Infantil e Divertido */

/* Container de Notificações */
.notifications-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

/* Notificação Base */
.notification {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--cor-principal-turquesa);
    position: relative;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.4s ease-out forwards;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Tipos de Notificação */
.notification-success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
}

.notification-success .notification-icon {
    color: #4CAF50;
}

.notification-error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #fff8f8, #ffe8e8);
}

.notification-error .notification-icon {
    color: #f44336;
}

.notification-warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #fffaf0, #fff3e0);
}

.notification-warning .notification-icon {
    color: #ff9800;
}

.notification-info {
    border-left-color: var(--cor-principal-turquesa);
    background: linear-gradient(135deg, #f0ffff, #e0f7f7);
}

.notification-info .notification-icon {
    color: var(--cor-principal-turquesa);
}

/* Conteúdo da Notificação */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.notification-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    animation: gentleBounce 0.6s ease-in-out;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: var(--cor-texto-preto);
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.notification-message {
    color: var(--cor-texto-cinza);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Botão de Fechar */
.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--cor-texto-cinza);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--cor-texto-preto);
    transform: scale(1.1);
}

/* Barra de Progresso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--cor-principal-turquesa);
    border-radius: 0 0 16px 16px;
    animation: progressBar 5s linear forwards;
}

.notification-success .notification-progress {
    background: #4CAF50;
}

.notification-error .notification-progress {
    background: #f44336;
}

.notification-warning .notification-progress {
    background: #ff9800;
}

/* Efeito de Shimmer */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Notificação com Ação */
.notification-action {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.notification-action .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Notificação Toast (menor) */
.notification-toast {
    padding: 12px 16px;
    min-width: 300px;
}

.notification-toast .notification-content {
    gap: 12px;
}

.notification-toast .notification-icon {
    font-size: 1.2rem;
}

.notification-toast .notification-title {
    font-size: 0.9rem;
}

.notification-toast .notification-message {
    font-size: 0.8rem;
}

/* Animações */
@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .notifications-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 16px;
    }
    
    .notification-toast {
        padding: 10px 14px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .notifications-container {
        top: 80px;
    }
    
    .notification {
        padding: 14px;
    }
    
    .notification-content {
        gap: 12px;
    }
    
    .notification-icon {
        font-size: 1.3rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-message {
        font-size: 0.8rem;
    }
}

