/* =========================================================
   SEÇÃO DE ESTATÍSTICAS — TEMA GRAFITE + NEON
   Mantém escopo local usando a .resumo-section
   ========================================================= */

   .resumo-section{
    /* Paleta local */
    --primary-color: #00ff88;
    --text-muted:    #aeb6bf;
    --background-card: linear-gradient(180deg, #171a1f 0%, #1b1f25 100%);
    --border-color: rgba(255,255,255,.06);
    --border-radius: 16px;
  }
  
  
  /* -------- Grid de KPI (responsivo, ocupa 100% da linha) -------- */
  .kpi-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .text-stat{
    width: 100%!important;
  }

  .kpi-val{
    font-size:1.9rem; font-weight:900; line-height:1;
    color:var(--primary-color);
    text-shadow:0 0 10px rgba(0,255,136,.45), 0 0 20px rgba(0,255,136,.25);
  }


/* =========================================================
   SISTEMA DE SINAIS - CONTROLE DE VISIBILIDADE (DASHBOARD REAL)
   ========================================================= */
.waiting-signal-real {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);

}
/* Estado padrão - waiting-signal-real visível, signal-generated-container-real oculto */
.waiting-signal-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem;
}

.signal-generated-container-real {
    display: none;
}

/* Estado com sinal - waiting-signal-real oculto, signal-generated-container-real visível */
.signal-generated-container-real.active {
    display: block;
}

.waiting-signal-real.hidden {
    display: none;
}

/* =========================================================
   MODAL DE SINAL GERADO - CONTAINER INTERNO
   ========================================================= */
   .signal-generated-container {
    max-width: 450px    ;
}
.signal-generated-container-real,.signal-generated-container {
    background: rgba(15, 20, 25, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    overflow: visible;
}

/* Seção de Identificação do Sinal */
.signal-identification {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.signal-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-indicator .signal-dot {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
}

.signal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.signal-info .signal-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.signal-asset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asset-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.asset-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Blocos de Métricas */
.signal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-block {
    background: rgba(30, 35, 40, 0.8);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.metric-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.9rem;
}

.metric-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.metric-value.confidence {
    color: var(--primary-color);
}

.metric-value.score {
    color: #fff;
}

.metric-value.strength {
    color: #9c27b0;
}


.direction-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.direction-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.direction-icon.call {
    background: var(--primary-color) !important;
    color: #000 !important;
}

.direction-icon.put {
    background: #ff4444 !important;
    color: #fff !important;
}

.direction-info {
    display: flex;
    flex-direction: column;
}

.direction-text {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.direction-text.call {
    color: var(--primary-color) !important;
}

.direction-text.put {
    color: #ff4444 !important;
}

/* Estado finalizado */
.signal-direction.finished {
    background: rgba(60, 60, 60, 0.8) !important;
    border-color: #666 !important;
}

.signal-direction.finished .direction-icon {
    background: #666 !important;
    color: #fff !important;
}

.signal-direction.finished .direction-text {
    color: #fff !important;
}

.signal-direction.finished .timeframe {
    color: #ccc !important;
}

.timeframe {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}



.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-icon {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.progress-status {
    color: #fff;
    font-size: 0.9rem;
}

.progress-timer {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progress 5s linear, progressGradient 5s linear infinite;
    position: relative;
    /* box-shadow: 0 0 10px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2); */
}
.progress-timer {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    min-width: 40px;
}

/* Botões de Ação */
.signal-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
}

.signal-actions .action-btn {
    flex: 1;
    min-width: 0;
}

.action-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}


.btn-modal {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .signal-generated-container,.signal-generated-container {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    /* Garantir que signal-generated-container-real não ultrapasse a tela no mobile */
    .signal-generated-container-real {
        max-width: 100vw;
        overflow: visible;
        padding: 1rem;
        margin: 0.5rem;
        box-sizing: border-box;
    }
    
    .signal-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .metric-block {
        padding: 0.75rem 0.5rem;
    }
    
    .metric-icon {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    .metric-value {
        font-size: 1rem;
    }
    
    .signal-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .direction-text {
        font-size: 1.5rem;
    }
}

/* =========================================================
   SEÇÃO restante do dashboard
   ========================================================= */

/* Estilos específicos para o novo dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Garantir que não haja overflow horizontal */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ajustes para mobile - ocultar sidebar e mostrar menu fixo */
@media (max-width: 768px) {
    /* Ocultar sidebar no mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Ajustar conteúdo principal no mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 80px; /* Espaço para o menu fixo */
    }
    
    /* Ajustar dashboard container no mobile */
    .dashboard-container {
        padding-bottom: 100px; /* Espaço extra para o menu fixo */
    }
}

.dashboard-main {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Garantir box-sizing correto para todos os elementos */
* {
    box-sizing: border-box;
}

/* Elementos específicos que podem causar overflow */
.progress-bar-container,
.table-responsive,
.stats-grid,
.signal-container {
    max-width: 100%;

}

/* Sessão Resumo */
.resumo-section {
    margin-bottom: 2rem;
}

.period-selector {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.period-dropdown {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-width: 150px;
    cursor: pointer;
    transition: var(--transition);
}

.period-dropdown:hover {
    border-color: var(--primary-color);
}

.period-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Ícone das estatísticas - tamanho dinâmico baseado na largura da div pai */
.ico-stat {
    width: clamp(17px, 5vw, 30px);
    height: clamp(17px, 5vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: clamp(16px, 5vw, 30px);
    flex-shrink: 0;
}

/* Texto das estatísticas */
.text-stat h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    align-self: flex-start;
}

.stat-icon.win {
    background: linear-gradient(135deg, var(--success-color), #10b981);
}

.stat-icon.loss {
    background: linear-gradient(135deg, var(--error-color), #ef4444);
    color: white;
}

.stat-icon.accuracy {
    background: linear-gradient(135deg, var(--primary-color), #00d4aa);
}

.stat-icon.detailed {
    background: linear-gradient(135deg, var(--warning-color), #f59e0b);
}

.stat-icon:not(.win):not(.loss):not(.accuracy):not(.detailed) {
    background: linear-gradient(135deg, var(--text-muted), #6b7280);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-details {
    margin-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Estilos específicos para signal-details dentro do signal card */
.signal-card .signal-details .detail-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1.5rem;
}

.signal-card .signal-details .detail-row:last-child {
    border-bottom: none;
}

.signal-card .signal-details .detail-row span:first-child {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
    flex-shrink: 0;
}

.signal-card .signal-details .detail-row span:last-child {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

/* Estilos para telas maiores - melhor espaçamento */
@media (min-width: 1024px) {
    .signal-card .signal-details .detail-row {
        padding: 1rem 0;
        gap: 2rem;
    }
    
    .signal-card .signal-details .detail-row span:first-child {
        min-width: 140px;
        font-size: 0.875rem;
    }
    
    .signal-card .signal-details .detail-row span:last-child {
        font-size: 0.875rem;
    }
}

.detail-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sessão Gerar Sinal */
.signal-generation-section {
    margin-bottom: 2rem;
}

.signal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.signal-controls {
    padding: 2rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.last-signal {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    align-items: center;
    justify-content: center;
}

.signal-controls h3,
.last-signal h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.broker-selection {
    margin-bottom: 2rem;
}

.generate-section {
    text-align: center;
}

/* Último Sinal */
.signal-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px !important;
}

.waiting-signal {
    text-align: center;
    color: var(--text-muted);
}

.waiting-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.waiting-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.waiting-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.signal-card {
    width: 100%;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.signal-asset {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.signal-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.signal-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.signal-timeframe {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.signal-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-color);
}    


.signal-direction.call {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.signal-direction.put {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.signal-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
}

.action-btn.btn-modal:hover {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}



/* Sessão Tabela */
.table-section {
    margin-bottom: 2rem;
}

/* Estilos da tabela */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
}

.table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px; /* Largura mínima para garantir scroll horizontal */
}

.table thead th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 0.6rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateX(2px);
}

.table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:nth-child(even):hover {
    background-color: rgba(59, 130, 246, 0.08);
}

.table tbody td {
    padding: 0.7rem 0.6rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    vertical-align: middle;
    white-space: nowrap;
    border: none;
}

/* Card body sem padding para maximizar espaço */
.table-section .card-body {
    padding: 0;
    overflow: hidden;
}




/* Modal Styles - Usando estilos existentes do index.html */

/* Responsividade */
@media (max-width: 768px) {
    .dashboard-container {
        width: 100%;
        box-sizing: border-box;
    }
    
    .signal-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .signal-controls,
    .last-signal {
        width: 100%;
        box-sizing: border-box;
    }
    
    .signal-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        margin: 0;
    }
    
    .signal-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .signal-info {
        width: 100%;
        box-sizing: border-box;
    }
    
    .signal-details {
        width: 100%;
        box-sizing: border-box;
    }
    
    .signal-card .signal-details .detail-row {
        padding: 0.5rem 0;
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .signal-card .signal-details .detail-row span:first-child {
        min-width: auto;
        margin-bottom: 0;
        font-size: 0.75rem;
    }
    
    .signal-card .signal-details .detail-row span:last-child {
        text-align: right;
        font-size: 0.75rem;
    }
    
    
    .progress-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        width: 100%;
        box-sizing: border-box;
    }
    
    .signal-actions {
        flex-direction: column;
    }
    
    
    
    /* Garantir que modais não causem overflow */
    .ai-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    /* Garantir que elementos não saiam da tela */
    .signal-generation-section {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }
    
    .signal-container * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar texto para não quebrar layout */
    .signal-info h3,
    .signal-info p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ajustar botões para mobile */
    .btn {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ai-modal-content {
        width: 95%;
        max-width: 95vw;
        box-sizing: border-box;
    }
    
    /* Responsividade da tabela */
    .table {
        font-size: 0.7rem;
        min-width: 500px;
    }
    
    .table thead th {
        font-size: 0.65rem;
        padding: 0.6rem 0.4rem;
    }
    
    .table tbody td {
        font-size: 0.65rem;
        padding: 0.5rem 0.4rem;
    }
    

    

}

/* Media query para telas muito pequenas */
@media (max-width: 480px) {

    
    .signal-container {
        gap: 1rem;
    }
    
    .signal-controls {
        padding: 0.75rem;
    }
    
    .signal-card {
        padding: 0.75rem;
    }
    
    .signal-header {
        gap: 0.75rem;
    }
    
    .progress-details {
        gap: 0.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Ajustes para mobile - fontes menores */
    .text-stat h3 {
        font-size: 0.8rem;
    }
    
    .kpi-val {
        font-size: 1.6rem !important;
    }
    
    
    /* Tabela para telas muito pequenas */
    .table {
        font-size: 0.65rem;
        min-width: 450px;
    }
    
    .table thead th {
        font-size: 0.6rem;
        padding: 0.5rem 0.3rem;
    }
    
    .table tbody td {
        font-size: 0.6rem;
        padding: 0.4rem 0.3rem;
    }
    


}

/* Garantir que o modal fique centralizado */
.ai-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.ai-modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Forçar visibilidade quando aplicado via JavaScript */
.ai-modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Estilos para o modal de detalhes do sinal */


.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 140px;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.detail-value.text-success {
    color: #28a745;
}

.detail-value.text-danger {
    color: #dc3545;
}

.detail-value.text-warning {
    color: #ffc107;
}

/* Badges estilizados para CALL/PUT */
.direction-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.direction-badge.call {
    background: linear-gradient(180deg, rgba(40, 167, 69, 0.2), rgba(32, 201, 151, 0.1));
    border: 1px solid #28a745;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.direction-badge.put {
    background: linear-gradient(180deg, rgba(220, 53, 69, 0.1), rgba(232, 62, 140, 0.2));
    border: 1px solid #dc3545;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.direction-badge .badge-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges de resultado com martingale */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.result-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.result-icon.win-icon {
    background: none;
    border: none;
    color: #28a745;
    box-shadow: none;
}

.result-icon.loss-icon {
    background: none;
    border: none;
    color: #dc3545;
    box-shadow: none;
}

.result-text {
    font-weight: 600;
    font-size: 12px;
}

.result-text.win {
    color: #28a745;
}

.result-text.loss {
    color: #dc3545;
}

.result-text.pending {
    color: #ffc107;
}

/* Badge do martingale */
.martingale-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.martingale-badge {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    border: 1px solid #ffb300;
    color: #000000;
}

/* Hover effects */
.direction-badge:hover {
    transform: translateY(-2px);
}

.direction-badge.call:hover {
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.direction-badge.put:hover {
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.martingale-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.result-icon.win-icon:hover {
    box-shadow: none;
    transform: scale(1.1);
}

.result-icon.loss-icon:hover {
    box-shadow: none;
    transform: scale(1.1);
}


.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-status {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.progress-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    text-align: center;
}

.progress-phase {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Countdown time in table */
.countdown-time {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    color: #ffc107;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(255, 193, 7, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Botão de detalhes */
.details-btn {
    font-size: 1.3rem;
    background: transparent;
    border: none;
    color: var(--primary-color);

    border-radius: 50%;

    cursor: pointer;
    transition: all 0.3s ease;

}

.details-btn:hover {
    transform: scale(1.2);
}

.details-btn:active {
    transform: scale(1.2);
}

/* Modal de detalhes - estilos específicos */
#signalDetailsModal .ai-modal-content {
    max-width: 600px;
    width: 95%;
    min-height: 500px;
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

#signalDetailsModal .ai-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

#signalDetailsModal .ai-logo {
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: white;
}



/* Estilos para a logo no dashboard header */
.dashboard-actions .logo .header-logo {
    height: 1.5em;
    width: auto;
    object-fit: contain;
}

#signalDetailsModal h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

#signalDetailsModal .ai-modal-body {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
}

#signalDetailsModal .signal-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#signalDetailsModal .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);

}

#signalDetailsModal .detail-row:last-child {
    border-bottom: none;
}

#signalDetailsModal .detail-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 160px;
    font-size: 1rem;
}

#signalDetailsModal .detail-value {
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
    flex: 1;
    font-size: 1rem;
}

/* Modal do Sinal Gerado - Usando estilos do modal de geração */
#signalModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(15px);
}

#signalModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.5s ease-out;
}

#signalModal .ai-modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    max-width: 450px;
    width: 90%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

#signalModal .ai-header {
    padding: 1rem 1.5rem 0.5rem 1.5rem;

    margin-bottom: 0rem;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

#signalModal .ai-logo {
    margin-bottom: 0.5rem;
}

#signalModal .ai-logo .header-logo {
    width: 40%;
    height: 40%;
}

#signalModal .ai-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#signalModal .status-text {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

#signalModal .success-indicator {
    color: #10b981;
    font-size: 1.5rem;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

#signalModal .ai-analysis {
    padding: 0rem 1.5rem 0rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0rem;
}

/* Estilos específicos para o conteúdo do modal do sinal */
#signalModal .message-content {
    text-align: center;
    display: block !important; /* Sobrescrever o display: flex do styles.css */
    width: 100%;
}

#signalModal .signal-summary {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

#signalModal .signal-pair-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    flex: 1;
    min-width: 80px;
}

#signalModal .signal-direction-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

#signalModal .signal-direction-large.call {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

#signalModal .signal-direction-large.put {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

#signalModal .signal-timeframe-large {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

#signalModal .signal-timer {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

#signalModal .timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

/* Estilos para resultado final */
#signalModal .timer-display.result-win {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: winPulse 2s infinite;
}

#signalModal .timer-display.result-loss {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: lossPulse 2s infinite;
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes lossPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

#signalModal .timer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#signalModal .signal-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    text-align: left;
    width: 100%;
}

#signalModal .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 35px;
}

#signalModal .info-label {
    color: var(--text-muted);
    font-weight: 500;
}

#signalModal .info-value {
    color: var(--text-primary);
    font-weight: 600;
}

#signalModal .signal-actions-modal {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

#signalModal .btn-primary,
#signalModal .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

#signalModal .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

#signalModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

#signalModal .btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#signalModal .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#signalModal .signal-card {
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

#signalModal .signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#signalModal .signal-info h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

#signalModal .signal-info p {
    color: var(--text-muted);
    margin: 0;
}

#signalModal .direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

#signalModal .direction-badge.call {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

#signalModal .direction-badge.put {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

#signalModal .signal-timeframe {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}


#signalModal .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

#signalModal .progress-status {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

#signalModal .progress-time {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
}

#signalModal .progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#signalModal .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 4px;
    transition: none; /* Remover transição para ir direto ao valor correto */
    position: relative;
}

#signalModal .progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

#signalModal .progress-details {
    display: flex;
    justify-content: center;
}

#signalModal .progress-phase {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: italic;
}

#signalModal .signal-details {
    margin: 1.5rem 0;
}

#signalModal .signal-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

#signalModal .signal-details .detail-row:last-child {
    border-bottom: none;
}

#signalModal .signal-details .detail-row span:first-child {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
    flex-shrink: 0;
}

#signalModal .signal-details .detail-row span:last-child {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

#signalModal .signal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

#signalModal .action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#signalModal .details-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

#signalModal .details-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Animações do modal */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   MODAL DE PROTEÇÃO DO DASHBOARD
   ========================================================= */

.protection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.protection-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.protection-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.protection-modal-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.protection-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    display: block;
}

.protection-icon.expired {
    color: #ffa726;
}

.protection-icon.error {
    color: #f44336;
}

.protection-modal-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.protection-modal-body {
    padding: 1.5rem 2rem;
}

.protection-message {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.user-info {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.user-info p {
    color: #c0c0c0;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.user-info strong {
    color: #00ff88;
    font-weight: 600;
}

.protection-modal-footer {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-protection {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-protection.primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-protection.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-protection.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-protection.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .protection-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .protection-modal-header,
    .protection-modal-body,
    .protection-modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .protection-modal-footer {
        flex-direction: column;
    }
    
    .btn-protection {
        width: 100%;
    }
    
    .protection-icon {
        font-size: 2.5rem;
    }
    
    .protection-modal-header h2 {
        font-size: 1.3rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   LICENSE TIMER NO SIDEBAR
   ========================================================= */


/* License Timer */
.license-timer {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.timer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timer-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-text {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.timer-text.expired {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.timer-text.warning {
    color: #ffa726;
    animation: pulse 1s infinite;
}

/* Estilos para cabeçalhos ordenáveis */
#signalsTable th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

#signalsTable th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#signalsTable th.sortable i {
    margin-left: 5px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#signalsTable th.sortable:hover i {
    opacity: 1;
}

/* Badge para status pendente */
.badge-warning {
    background-color: #ffa726;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Centralizar conteúdo da tabela */
#signalsTable td,
#signalsTable th {
    text-align: center;
    vertical-align: middle;
}

#signalsTable .direction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

