/* Importar Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Reset e Configurações Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   PALETA DE CORES E-MIDIAS
   ==========================================
   
   PRIMÁRIA:   #E03D99 (Rosa/Magenta)
   SECUNDÁRIA: #7B2CBF (Roxo)
   TERCIÁRIA:  #5A5FFF (Azul)
   FUNDO:      #001B4D (Azul Escuro)
   
   USO:
   - Primária: Destaques principais, CTAs, ícones importantes
   - Secundária: Subtítulos, seções principais
   - Terciária: Dados, métricas, informações
   - Fundo: Base da aplicação, neutralidade
   
   ========================================== */

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #001B4D;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-size: clamp(12px, 1.5vw, 20px);
    margin: 0;
    padding: 0;
}

/* Container Principal */
.dashboard-container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 45px);
    width: 100vw;
    padding: 0;
    gap: clamp(8px, 1vw, 20px);
    overflow: hidden;
    box-sizing: border-box;
    align-items: stretch;
}

/* Coluna Esquerda (50%) */
.left-column {
    flex: 0 0 50% !important;
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2vh, 30px);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    width: 50% !important;
}

/* Coluna Direita (50%) */
.right-column {
    flex: 0 0 50% !important;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vh, 20px);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    width: 50% !important;
}

/* Seção do Mapa (Ocupa altura total) */
.mapa-section {
    flex: 1;
    background: rgba(224, 61, 153, 0.08);
    border-radius: clamp(10px, 1.5vw, 20px);
    padding: clamp(8px, 1.2vw, 16px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(224, 61, 153, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
    margin: 18px;
}

.mapa-section h2 {
    font-size: clamp(18px, 2.5vw, 32px);
    margin-bottom: clamp(8px, 1.5vh, 16px);
    font-weight: 600;
    color: #E03D99;
}

.mapa-content-wrapper {
    flex: 1;
    display: flex;
    gap: clamp(12px, 1.5vw, 20px);
    min-height: 0;
    width: 100%;
}

#mapa-container {
    flex: 0 0 75%;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: clamp(8px, 1.2vw, 16px);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

#mapa-brasil {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

img[src*=".svg"],
object[type="image/svg+xml"],
svg {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

#animacoes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.legenda {
    margin-top: clamp(8px, 1vh, 16px);
    display: flex;
    gap: clamp(15px, 2vw, 25px);
    font-size: clamp(11px, 1.3vw, 16px);
    color: rgba(255, 255, 255, 0.7);
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 10px);
}

.pinga-demo {
    width: 12px;
    height: 12px;
    background: #E03D99;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #E03D99;
    animation: pulse-demo 2s infinite;
}

@keyframes pulse-demo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Lista de Inserções Lateral (dentro do mapa) */
.insercoes-lateral {
    flex: 0 0 25%;
    background: rgba(123, 44, 191, 0.08);
    border-radius: 10px;
    padding: clamp(10px, 1vw, 15px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(123, 44, 191, 0.2);
    min-height: 0;
    margin: -10px;
}

.insercoes-lateral h4 {
    font-size: 10px;
    margin-bottom: 8px;
    color: #7B2CBF;
    text-align: center;
    font-weight: 600;
}

.lista-lateral {
    flex: 1;
    overflow: hidden;
    /* TV-friendly: sem scroll */
}

.insercao-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #E03D99;
}

/* Estilo específico para lista lateral */
.lista-lateral .insercao-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 4px;
    border-left: 2px solid #E03D99;
    font-size: 8px;
}


@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.insercao-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.insercao-radio {
    font-weight: 600;
    font-size: 15px;
    color: #E03D99;
}

.lista-lateral .insercao-radio {
    font-size: 12px;
    color: #E03D99;
    font-weight: 600;
}

.insercao-hora {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.lista-lateral .insercao-hora {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.insercao-detalhes {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.insercao-cliente {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

/* Seção de Métricas (topo da coluna direita, muito compacta) */
.metricas-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1vw, 12px);
    flex: 0 0 auto;
    max-height: 110px;
    padding: 10px;
    margin: 15px;
}

.metrica-card {
    background: rgba(90, 95, 255, 0.08);
    border-radius: 12px;
    padding: clamp(8px, 1vw, 12px);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(90, 95, 255, 0.3);
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metrica-valor {
    color: #E03D99;
    font-weight: 700;
    font-size: clamp(20px, 2.8vw, 32px);
    line-height: 1;
    margin-bottom: 4px;
}

.metrica-label {
    font-size: clamp(10px, 1vw, 12px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

/* Gráficos - ocupam mais espaço (resto da coluna direita) */
.grafico-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 15px 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-right: 25px;
    margin-bottom: 20px;
    
}

.grafico-section h3 {
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #E03D99;
}

.grafico-container {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* ===== GRADE DE CIDADES ===== */
.grafico-cidades-grade {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cidade-card {
    background: rgba(224, 61, 153, 0.1);
    border: 1px solid rgba(224, 61, 153, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    padding-top: 6px;
}

.cidade-card h4 {
    font-size: 15.6px;
    color: #E03D99;
    font-weight: 700;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(224, 61, 153, 0.2);
    padding-bottom: 6px;
}

.cidade-card-contador {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 2px 0;
}

.emissoras-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    font-size: 11.5px;
}

.emissora-item {
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 4px;
    border-left: 2px solid #7B2CBF;
    padding-left: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grafico-barra {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 85%;
    margin-right: auto;
}

.grafico-label {
    flex: 0 0 32%;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    padding-right: 8px;
}

.grafico-bar-container {
    flex: 0 0 auto;
    width: 80%;
    height: 17px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.grafico-bar {
    height: 100%;
    background: linear-gradient(90deg, #7B2CBF, #80058f);
    border-radius: 12px;
    transition: width 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.grafico-valor {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer-info {
    background: rgba(224, 61, 153, 0.08);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(224, 61, 153, 0.2);
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Animações no Mapa */
.pinga {
    position: absolute;
    width: clamp(8px, 0.8vw, 12px);
    height: clamp(8px, 0.8vw, 12px);
    margin-left: calc(clamp(8px, 0.8vw, 12px) / -2);
    margin-top: calc(clamp(8px, 0.8vw, 12px) / -2);
    pointer-events: auto;
    cursor: pointer;
}

.pinga-circle {
    width: 100%;
    height: 100%;
    background: #E03D99;
    border-radius: 50%;
    box-shadow: 0 0 10px #E03D99, 0 0 20px rgba(224, 61, 153, 0.4);
    animation: pulsePing 1.5s ease-in-out infinite;
}

.pinga-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid #5A5FFF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}
/* Badge label - REMOVIDO (não utilizado) */

@keyframes pulsePing {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Animação de fadeout para remover pinga */
@keyframes fadeOutPinga {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.pinga.fade-out {
    animation: fadeOutPinga 0.8s ease-out forwards !important;
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid #E03D99;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 300px;
}

.tooltip.hidden {
    display: none;
}

.tooltip-content strong {
    color: #E03D99;
    display: block;
    margin-bottom: 5px;
}

.tooltip-content div {
    margin: 3px 0;
}

/* Label Permanente - Muito transparente para não atrapalhar visualização */
.label-permanente {
    position: absolute;
    top: clamp(10px, 1.2vh, 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    pointer-events: none;
}

.label-content {
    background: rgba(0, 0, 0, 0.15);
    color: #FFB6D9;
    padding: clamp(1px, 0.15vw, 3px) clamp(2px, 0.3vw, 5px);
    border-radius: clamp(2px, 0.2vw, 3px);
    font-size: clamp(6px, 0.7vw, 9px);
    white-space: nowrap;
    backdrop-filter: blur(2px);
    border: 0.5px solid rgba(224, 61, 153, 0.15);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.label-emissora {
    font-weight: 500;
    color: #FF8FB3;
    font-size: clamp(6px, 0.65vw, 8px);
}

.label-cidade {
    font-size: clamp(5px, 0.6vw, 7px);
    color: #FFB6D9;
    margin-top: 0px;
}

/* Linha conectora para múltiplos pings próximos */
.linha-conectora {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    background: rgba(224, 61, 153, 0.25);
    height: 1px;
    border: none;
    box-shadow: 0 0 4px rgba(224, 61, 153, 0.3);
}

/* Tooltip Automático - REMOVIDO */

.tooltip-auto-content div:first-child {
    color: #FFB6D9;
    font-weight: 500;
}

/* ==========================================
   RESPONSIVIDADE - BREAKPOINTS
   ==========================================
   
   - 4K/Telas Grandes: 2560px+ (TV grande)
   - Full HD: 1920px - 2559px (TV padrão)
   - 1440p: 1440px - 1919px (Monitor grande)
   - Desktop: 1366px - 1439px (Monitor padrão)
   - Notebook: 1024px - 1365px (Laptop)
   - Tablet: 768px - 1023px (iPad, Tablet)
   - Mobile: 320px - 767px (Smartphone)
   
   ========================================== */

/* ========== 4K / Telas Muito Grandes (2560px+) ========== */
@media (min-width: 2560px) {
    .dashboard-container {
        padding: 20px;
        gap: 20px;
    }

    .mapa-section h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .metrica-card {
        padding: 15px;
    }

    .metrica-valor {
        font-size: 52px;
        margin-bottom: 6px;
        color: #E03D99;
        font-weight: 700;
    }

    .metrica-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }

    .grafico-section h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .grafico-label {
        font-size: 16px;
    }

    .grafico-bar-container {
        height: 32px;
    }

    .insercoes-lateral h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .lista-lateral .insercao-item {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .lista-lateral .insercao-radio {
        font-size: 15px;
    }

    .lista-lateral .insercao-hora {
        font-size: 13px;
    }

    .insercao-detalhes {
        font-size: 14px;
    }

    .pinga-demo {
        width: 16px;
        height: 16px;
    }
}

/* ========== Full HD / TV Padrão (1920px - 2559px) ========== */
@media (min-width: 1920px) {
    .dashboard-container {
        padding: 18px;
        gap: 18px;
    }

    .mapa-section h2 {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .metrica-card {
        padding: 18px;
    }

    .metrica-valor {
        font-size: 44px;
        margin-bottom: 6px;
        color: #E03D99;
        font-weight: 700;
    }

    .metrica-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }

    .grafico-section h3 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .grafico-label {
        font-size: 14px;
    }

    .grafico-bar-container {
        height: 28px;
    }

    .insercoes-lateral h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .lista-lateral .insercao-item {
        padding: 10px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .lista-lateral .insercao-radio {
        font-size: 14px;
    }

    .lista-lateral .insercao-hora {
        font-size: 12px;
    }

    .insercao-detalhes {
        font-size: 13px;
    }

    .pinga-demo {
        width: 14px;
        height: 14px;
    }
}

/* ========== 1440p / Monitor Grande (1440px - 1919px) ========== */
@media (min-width: 1440px) and (max-width: 1919px) {
    .dashboard-container {
        padding: 15px;
        gap: 15px;
    }

    .mapa-section h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .metrica-card {
        padding: 16px;
    }

    .metrica-valor {
        font-size: 36px;
        margin-bottom: 6px;
        color: #E03D99;
        font-weight: 700;
    }

    .metrica-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }

    .grafico-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .grafico-label {
        font-size: 13px;
    }

    .grafico-bar-container {
        height: 26px;
    }

    .insercoes-lateral h4 {
        font-size: 15px;
        margin-bottom: 11px;
    }

    .lista-lateral .insercao-item {
        padding: 9px;
        margin-bottom: 7px;
        font-size: 11px;
    }

    .lista-lateral .insercao-radio {
        font-size: 13px;
    }

    .lista-lateral .insercao-hora {
        font-size: 11px;
    }
}

/* ========== Desktop Padrão (1366px - 1439px) ========== */
@media (min-width: 1366px) and (max-width: 1439px) {
    .dashboard-container {
        padding: 13px;
        gap: 13px;
    }

    .mapa-section h2 {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .metrica-card {
        padding: 14px;
    }

    .metrica-valor {
        font-size: 28px;
        margin-bottom: 4px;
        color: #E03D99;
        font-weight: 700;
    }

    .metrica-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.7);
    }

    .grafico-section h3 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .grafico-label {
        font-size: 12px;
    }

    .grafico-bar-container {
        height: 24px;
    }

    .insercoes-lateral h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .lista-lateral .insercao-item {
        padding: 8px;
        margin-bottom: 6px;
        font-size: 10px;
    }

    .lista-lateral .insercao-radio {
        font-size: 12px;
    }

    .lista-lateral .insercao-hora {
        font-size: 10px;
    }
}

/* REMOVIDO: Media query que empilhava colunas em 1024-1365px */

/* REMOVIDO: Media query que empilhava colunas em 768-1023px */

/* REMOVIDO: Media query que empilhava colunas em mobile */

/* ========== Orientação Landscape em Tablets ========== */
@media (max-width: 1023px) and (orientation: landscape) {
    .dashboard-container {
        flex-direction: row;
        padding: 10px;
        gap: 10px;
    }

    .left-column {
        flex: 0 0 55%;
    }

    .right-column {
        flex: 0 0 45%;
    }

    .metricas-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .grafico-section {
        flex: 0 0 calc(50% - 5px);
    }
}

/* ========== Animação de entrada (universal) ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-container>* {
    animation: fadeIn 0.6s ease;
}

/* REMOVIDO: Media query que empilhava colunas abaixo de 1024px */

/* REMOVIDO: Media query que empilhava colunas abaixo de 768px */

/* ========== GOOGLE TV SUPPORT ========== */
/* Suporte para Google TV e Smart TVs - 1080p, 720p e 4K */

/* REMOVIDO: Media query que empilhava colunas em Google TV 720p */

/* Google TV / Smart TV 1080p (1920x1080) */
@media (min-width: 1920px) and (max-height: 1200px) {
    .dashboard-container {
        flex-direction: row;
        padding: 12px;
        gap: 12px;
    }

    .left-column {
        flex: 0 0 58%;
    }

    .right-column {
        flex: 0 0 42%;
        overflow-y: auto;
        gap: 15px;
    }

    .mapa-section {
        flex: 0 0 70%;
    }

    .mapa-content-wrapper {
        flex-direction: row;
    }

    #mapa-container {
        flex: 0 0 76% !important;
    }

    .insercoes-lateral {
        flex: 0 0 24%;
    }

    .metricas-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        flex: 0 0 auto;
    }

    .metrica-card {
        padding: 16px;
    }

    .metrica-valor {
        font-size: 32px;
    }

    .metrica-label {
        font-size: 14px;
    }

    .grafico-section {
        flex: 0 0 auto;
        max-height: 140px;
    }

    .grafico-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .mapa-section h2 {
        font-size: 24px;
    }

    .label-content {
        font-size: 8px;
        padding: 2px 4px;
    }

    .label-emissora {
        font-size: 8px;
    }

    .label-cidade {
        font-size: 7px;
    }

    .pinga {
        width: 10px;
        height: 10px;
        margin-left: -5px;
        margin-top: -5px;
    }

    .grafico-label {
        font-size: 14px;
    }

    .grafico-valor {
        font-size: 13px;
    }

    .footer-info {
        font-size: 12px;
        flex: 0 0 auto;
    }
}

/* Google TV / Smart TV 4K (3840x2160) */
@media (min-width: 3840px) and (min-height: 2160px) {
    .dashboard-container {
        flex-direction: row;
        padding: 20px;
        gap: 20px;
    }

    .left-column {
        flex: 0 0 58%;
        gap: 25px;
    }

    .right-column {
        flex: 0 0 42%;
        overflow-y: auto;
        gap: 25px;
        padding-right: 10px;
    }

    .mapa-section {
        flex: 0 0 70%;
    }

    .mapa-content-wrapper {
        flex-direction: row;
    }

    #mapa-container {
        flex: 0 0 76% !important;
    }

    .insercoes-lateral {
        flex: 0 0 24%;
    }

    .metricas-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        flex: 0 0 auto;
    }

    .metrica-card {
        padding: 30px;
    }

    .metrica-valor {
        font-size: 56px;
    }

    .metrica-label {
        font-size: 24px;
    }

    .grafico-section {
        flex: 0 0 auto;
        max-height: 200px;
    }

    .grafico-section h3 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .mapa-section h2 {
        font-size: 40px;
    }

    .label-content {
        font-size: 12px;
        padding: 4px 6px;
    }

    .label-emissora {
        font-size: 12px;
    }

    .label-cidade {
        font-size: 10px;
    }

    .pinga {
        width: 16px;
        height: 16px;
        margin-left: -8px;
        margin-top: -8px;
    }

    .pinga-ripple {
        border: 2px solid #5A5FFF;
    }

    .grafico-label {
        font-size: 18px;
    }

    .grafico-valor {
        font-size: 16px;
    }

    .footer-info {
        font-size: 16px;
        flex: 0 0 auto;
    }
}

/* Google TV / Smart TV 4K Landscape Extra Large */
@media (min-width: 4000px) {
    .dashboard-container {
        flex-direction: row;
        padding: 24px;
        gap: 24px;
    }

    .left-column {
        flex: 0 0 58%;
        gap: 30px;
    }

    .right-column {
        flex: 0 0 42%;
        overflow-y: auto;
        gap: 30px;
    }

    .metricas-section {
        gap: 24px;
    }

    .metrica-card {
        padding: 36px;
    }

    .metrica-valor {
        font-size: 64px;
    }

    .metrica-label {
        font-size: 28px;
    }

    .mapa-section h2,
    .grafico-section h3 {
        font-size: 48px;
    }

    .label-content {
        font-size: 14px;
        padding: 5px 8px;
    }

    .pinga {
        width: 20px;
        height: 20px;
        margin-left: -10px;
        margin-top: -10px;
    }

    .footer-info {
        font-size: 18px;
    }
}

/* ==========================================
   NEWS TICKER / RODAPÉ DE NOTÍCIAS
   ========================================== */

.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(90deg, #001B4D 0%, rgba(0, 27, 77, 0.95) 50%, #001B4D 100%);
    border-top: 2px solid #E03D99;
    display: flex;
    align-items: center;
    min-height: 45px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(224, 61, 153, 0.3);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.ticker-header {
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    border-right: 2px solid #E03D99;
    background-color: rgba(224, 61, 153, 0.1);
}

.ticker-label {
    color: #E03D99;
    font-weight: bold;
    font-size: clamp(12px, 2vw, 18px);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: tickerPulse 1.5s ease-in-out infinite;
}

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

.ticker-content {
    flex: 1;
    overflow: hidden;
    padding: 0 10px;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    animation: scrollTicker 480s linear infinite;
    white-space: nowrap;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(123, 44, 191, 0.1);
    border-left: 3px solid #E03D99;
    color: #ffffff;
    font-size: clamp(11px, 1.8vw, 16px);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: rgba(123, 44, 191, 0.2);
    border-left-color: #5A5FFF;
    transform: translateY(-2px);
}

.ticker-item-icon {
    width: 8px;
    height: 8px;
    background-color: #E03D99;
    border-radius: 50%;
    flex-shrink: 0;
}

.ticker-item-text {
    color: #ffffff;
    font-size: inherit;
}

.ticker-item-highlight {
    color: #E03D99;
    font-weight: bold;
}

/* ⭐ NOVO: Estilo para campanha nova - texto todo em rosa */
.ticker-item.nova-campanha,
.ticker-item.nova-campanha .ticker-item-text,
.ticker-item.nova-campanha .ticker-item-highlight {
    color: #FF6B9D !important;
    background: rgba(255, 107, 157, 0.15) !important;
    border-left-color: #FF6B9D !important;
}

/* Responsive adjustments for news ticker */
@media (max-width: 1023px) {
    .news-ticker {
        min-height: 50px;
    }

    .ticker-header {
        padding: 0 15px;
    }

    .ticker-label {
        font-size: 14px;
    }

    .ticker-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ticker-items {
        gap: 20px;
        animation: scrollTicker 25s linear infinite;
    }
}

@media (max-width: 768px) {
    .news-ticker {
        min-height: 45px;
        position: fixed;
        bottom: 0;
    }

    .ticker-header {
        padding: 0 12px;
    }

    .ticker-label {
        font-size: 12px;
    }

    .ticker-item {
        padding: 5px 10px;
        font-size: 12px;
        gap: 8px;
    }

    .ticker-item-icon {
        width: 6px;
        height: 6px;
    }

    .ticker-items {
        gap: 15px;
        animation: scrollTicker 20s linear infinite;
    }
}

/* Animação de fade out para items do ticker */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}