/**
 * Estilos para Notificações em Tempo Real
 * TradyNox - Plataforma de Análise para Traders
 * v8.0 - Atualizado para combinar com o novo design de toasts
 * 
 * NOTA: Os estilos dos toasts agora são injetados via JS (notifications-realtime.js)
 * Este arquivo contém apenas estilos para badges, lista de notificações e dropdown
 */

/* =============================================
   CONTAINER DE TOASTS (antigo - DESATIVADO)
   Os toasts agora usam #realtime-toast-container via JS
   ============================================= */

/* Desativar container antigo caso exista */
.notification-toast-container {
    display: none !important;
}

/* Desativar toast antigo caso exista */
.notification-toast {
    display: none !important;
}

/* =============================================
   BADGE DE NOTIFICAÇÃO
   ============================================= */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: pulse-badge 2s infinite;
}

.notification-badge:empty,
.notification-badge[style*="display: none"] {
    display: none !important;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* =============================================
   LISTA DE NOTIFICAÇÕES (Dropdown)
   ============================================= */

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

/* =============================================
   ITEM DE NOTIFICAÇÃO (Dropdown)
   ============================================= */

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.notification-item.unread {
    background: rgba(0, 212, 255, 0.08);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #0099cc 100%);
}

/* =============================================
   ÍCONE DA NOTIFICAÇÃO (Dropdown)
   ============================================= */

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.1);
}

.notification-icon i {
    font-size: 14px;
    color: #00d4ff;
}

.notification-icon.success {
    background: rgba(46, 213, 115, 0.1);
}

.notification-icon.success i {
    color: #2ed573;
}

.notification-icon.warning {
    background: rgba(255, 193, 7, 0.1);
}

.notification-icon.warning i {
    color: #ffc107;
}

.notification-icon.error {
    background: rgba(255, 71, 87, 0.1);
}

.notification-icon.error i {
    color: #ff4757;
}

/* =============================================
   CONTEÚDO DA NOTIFICAÇÃO (Dropdown)
   ============================================= */

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Ponto de não lida */
.notification-dot {
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* =============================================
   MENSAGEM DE VAZIO
   ============================================= */

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* =============================================
   BOTÃO MARCAR TODAS
   ============================================= */

.mark-all-read {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.mark-all-read:hover {
    background: rgba(0, 212, 255, 0.1);
}
