/**
 * Estilos para Notificações Socket.IO
 */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    margin-bottom: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.notification-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #475569;
}

/* Cores por tipo */

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-title {
    color: #059669;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-title {
    color: #d97706;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-title {
    color: #dc2626;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-title {
    color: #2563eb;
}

/* Badge de notificações */

.notification-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 10001;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsivo */

@media (max-width: 640px) {
    .notification {
        max-width: calc(100vw - 20px);
        top: 10px;
        right: 10px;
    }

    .notification-container {
        padding: 12px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* Botão de teste de som - REMOVIDO em favor do sino no header */
/* Agora use: Clique no sino (🔔) no header para testar som */
