.top-logo {
    text-align: center;
    margin: 0;              /* 👈 zero absoluto */
    padding: 0;
}

.top-logo a {
    display: inline-block;
    line-height: 0;         /* remove espaço fantasma inline */
}

.top-logo-img {
    max-height: 100px;
    width: auto;
    display: block;         /* evita whitespace vertical */
    margin: 0;
    padding: 0;
    opacity: 0.95;
}



/* ===== HOME GRID ===== */

.home-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* linha */
.home-row {
    display: flex;
    gap: 12px;
}

/* container base */
.home-box {
    border: 1px solid #444;
    background: #000;
    color: #fff;
    padding: 8px;
    box-sizing: border-box;
}

/* grandes (linha de cima) */
.home-box-large {
    flex: 1 1 50%;
    min-height: 280px;
}

/* pequenos (linha de baixo) */
.home-box-small {
    flex: 1 1 33.333%;
    min-height: 200px;
}

/* ===== LINHA COM 5 CAIXAS PEQUENAS ===== */
.home-row-5 {
    display: flex;
    gap: 12px;
}

.home-box-tiny {
    flex: 1 1 20%;     /* 5 colunas */
    min-height: 160px;
}




.site-wrapper {
    width: 100%;
}
/* ========== BASE GERAL ========== */

body {
    margin: 0;
    padding-top: 6px;   /* espaço para o menu */
    background: black;
    color: lightgrey;
}




/* Logout como link simples */
.logout-link {
    color: #7ecbff;      /* azul claro */
    text-decoration: none;
    font-weight: normal;
}

/* Login / Logout como links simples */
.login-link,
.logout-link {
    color: #7ecbff;          /* azul claro */
    text-decoration: none;
    font-size: 11px;
    opacity: 0.85;
}

.login-link:hover,
.logout-link:hover {
    text-decoration: underline;
    opacity: 1;
    color: #b5e3ff;
}

.login-link::before { content: "🔑 "; }
.logout-link::before { content: "↩ "; }


/* Links estilo login/logout (uso geral) */
.link {
    color: #7ecbff;
    text-decoration: none;
    font-size: 11px;
    opacity: 0.85;
}

.link:hover {
    text-decoration: underline;
    opacity: 1;
    color: #b5e3ff;
}


/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.top-bar-actions {
    padding-bottom: 6px;
}

/* linhas */
.top-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* logout */
.logout-btn {
    background: #ffd700;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
}
.logout-btn:hover {
    background: #ffea70;
}

.login-btn {
    display: inline-block;
    background: #e53935;      /* vermelho forte */
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
}

.login-btn:hover {
    background: #ef5350;      /* vermelho mais claro no hover */
    color: #ffffff;
}


.login-btn {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
}



/* separador */
.sep {
    opacity: 0.5;
}

.main-menu {
    background: #000;
    margin-top: 6px;       /* 👈 ESPAÇO ENTRE TOPBAR E MENU */
    padding-top: 6px;
    padding-bottom: 6px;
}


.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    text-align: center;
        margin-top: 0;
    
}

.main-menu li {
    display: inline-block;
    margin: 0 4px;
}

.main-menu a {
    padding: 6px 12px;
    background: #eee;
    text-decoration: none;
    color: #000;
    border-radius: 4px;
}

.main-menu a.active {
    background: #ffd700;
}





/* Links normais (fora do nav) */
body a:not([class]) {
    color: lightblue;
}
body a:not([class]):hover {
    color: purple;
}
body a:not([class]):visited {
    color: lightblue;
}

.dark-orange-button {
    display: inline-block;
    background-color: #d35400; /* laranja escuro */
    color: #ffffff !important;
    padding: 6px 14px;
    text-decoration: none !important;
    border-radius: 999px;
    font-weight: bold;
    font-size: 12px;
    margin: 4px 4px 4px 0;
}

.dark-orange-button:hover {
    background-color: #a84300; /* hover mais escuro */
    color: #ffffff !important;
}

.green-button {
    display: inline-block;
    background-color: #2e7d32; /* verde escuro */
    color: #ffffff !important;
    padding: 6px 14px;
    text-decoration: none !important;
    border-radius: 999px;
    font-weight: bold;
    font-size: 12px;
    margin: 4px 4px 4px 0;
}

.green-button:hover {
    background-color: #1b5e20;
    color: #ffffff !important;
}

.profile-actions {
    margin-top: 10px;
}

/* ========== FORMULÁRIOS GEORADIO – DARK COMPACT ========== */

form {
    background: #000;
    color: #ccc;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    width: 100%;
    max-width: 720px;
    margin: 12px auto;
    box-sizing: border-box;
    font-size: 13px;
}

/* labels */
form label {
    color: #9e9e9e;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* inputs base */
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #ddd;
    font-size: 12px;
    box-sizing: border-box;
}

/* textarea */
form textarea {
    min-height: 80px;
    resize: vertical;
}

/* focus */
form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #66bb6a;
    background: #0b0b0b;
}

/* radios / checkboxes */
form input[type="radio"],
form input[type="checkbox"] {
    accent-color: #66bb6a;
    margin-right: 4px;
}

/* radio groups inline */
form label input[type="radio"] {
    margin-right: 4px;
}

/* submit / buttons */
form input[type="submit"],
form button,
.btn {
    margin-top: 12px;
    background: #1b5e20;
    color: #e0ffe0;
    padding: 6px 14px;
    border: 1px solid #2e7d32;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.15s ease;
}

form input[type="submit"]:hover,
form button:hover,
.btn:hover {
    background: #2e7d32;
    color: #ffffff;
}

/* mensagens / notas */
form small {
    color: #888;
    font-size: 11px;
}

/* separação compacta */
form br {
    display: none;
}

/* campos inline (quando usados) */
.form-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* autocomplete / suggestion box */
#suggestion-box {
    background: #000;
    border: 1px solid #333;
    margin-top: 2px;
    font-size: 11px;
}
#suggestion-box div {
    padding: 3px 6px;
    cursor: pointer;
}
#suggestion-box div:hover {
    background: #222;
}


/* ========== CONTAINERS PRINCIPAIS ========== */

.content-container {
    width: 98%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Scroller das estações */
.scroll-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    margin: 10px 20%;
    border: 1px solid #444;
    padding: 4px;
    background: #111;
    box-sizing: border-box;
}
.scroll-text {
    display: inline;
    animation: scroll-right 60s linear infinite;
}
@keyframes scroll-right {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Container principal em cima (onde abrem QTHmapa/QRG/QRK/QSO) */
.main-box {
    border: 1px solid #444;
    padding: 5px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    min-height: 350px;
    margin-top: 10px;
}

/* Linha de baixo com 3 caixas (chat / meteo / news) */
.bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.bottom-box .log-console {
    border: 1px solid #444;
    padding: 5px;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    font-size: 12px;
    flex: 1 1 260px;
    min-width: 240px;
    max-height: 300px;
    overflow-y: auto;
}


.geo-text {
    font-size: 12px;        /* mais pequeno */
    line-height: 1.35;
    color: #bbb;            /* menos contraste */
    margin: 4px 0;
    text-align: justify;
    text-justify: inter-word;
}

.geo-text a {
    color: #7ecbff;
    text-decoration: none;
}

.geo-text a:hover {
    text-decoration: underline;
}

/* ========== METEO (se precisares de layout de 3 colunas) ========== */
/* Exemplo adaptado do teu HTML de meteo [1][2] */

.meteo-container {
    display: flex;
    gap: 6px;
}
.meteo-container .part,
.meteo-container .part2,
.meteo-container .part3 {
    border: 1px solid #444;
    padding: 4px 6px;
    font-size: 11px;
    color: #fff;
    box-sizing: border-box;
}



.purple-button {
    display: inline-block;
    background-color: #9370DB;
    color: #ffffff !important;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    font-size: 12px;
}
.purple-button:hover {
    background-color: #7b5fc4;
}



/* ===== MAPA ===== */

.map-wrapper {
    position: relative;
}

#map {
    width: 100%;
    height: 350px;
}




/* Overlay do mapa */
.overlay-menu {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #000;
}

.overlay-menu label {
    display: block;
    margin-bottom: 4px;
}

/* Popup OpenLayers */
.ol-popup {
    border-radius: 10px;
    background-color: #f3f3f3;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.ol-popup-content {
    padding: 15px;
    color: #000;
}
.ol-popup-closer {
    position: absolute;
    top: 8px;
    right: 8px;
}


#osm-map {
    width: 100%;
    height: 350px;
    border: 1px solid #333;
    border-radius: 4px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #000;
    color: #fff;
    font-size: 13px;
}

th, td {
    border: 1px solid #444;
    padding: 6px 8px;
}

th {
    background-color: #195905; /* verde GEORADIO */
    color: #fff;
}

tr:nth-child(even) {
    background-color: #111;
}




.home-box-large iframe,
.home-box-large html,
.home-box-large body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}



.pro-widget {
    font-size: 12px;
    line-height: 1.4;
    color: #ddd;
}

.pro-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 6px;
}

.pro-icon {
    font-size: 18px;
}

.pro-text {
    margin: 4px 0;
}

.pro-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
}

.pro-clock {
    font-size: 14px;
}

.pro-btn {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #0f0;
    background: transparent;
    color: #0f0;
    cursor: pointer;
}
.pro-btn:hover {
    background: #0f0;
    color: #000;
}











#suggestion-box {
    background: #000;
    border: 1px solid #444;
    color: #ccc;
}
#suggestion-box div:hover {
    background: #222;
}



/* ===== BOTÕES SELECIONÁVEIS (QSO / QRK) ===== */

.band-btn,
.mode-btn,
.sinal-btn,
.radio-btn {
    background: #111;
    color: #ccc;
    border: 1px solid #444;
    padding: 6px 14px;
    margin: 3px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

/* hover */
.band-btn:hover,
.mode-btn:hover,
.sinal-btn:hover,
.radio-btn:hover {
    background: #222;
}

/* ATIVO (SELECIONADO) */
.band-btn.active,
.mode-btn.active,
.sinal-btn.active,
.radio-btn.active {
    background: #1b5e20;
    color: #fff;
    border-color: #66bb6a;
}


/* ===== INFO BOX (QSO / QRK) ===== */
.info-box-red {
    background: #2b0000;
    border: 1px solid #ff4d4d;
    color: #ffb3b3;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    line-height: 1.4;
}


/* ===== PLAY WIDGET ===== */

.play-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.play-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    justify-content: center;
}

.play-controls button {
    background: #111;
    color: #0f0;
    border: 1px solid #0a0;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    cursor: pointer;
}

.play-controls button:hover {
    background: #0f0;
    color: #000;
}

.play-frame {
    flex: 1;
    border: 1px solid #333;
    background: #000;
}

.play-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== PLAY MAXIMIZADO ===== */
.play-maximized {
    position: fixed !important;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 9999;
    background: #000;
    padding: 10px;
}

/* iframe ocupa tudo */
.play-maximized iframe {
    width: 100%;
    height: calc(100% - 50px);
}

.play-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-frame audio {
    margin-top: 10px;
}


.site-footer {
    margin-top: 12px;
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #222;
    white-space: nowrap;
}

.site-footer a {
    color: #7ecbff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.version-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.version-badge.rc {
    background: #ff9800;
    color: #000;
}

.version-badge.stable {
    background: #4caf50;
    color: #000;
}

.version-badge.dev {
    background: #e91e63;
    color: #fff;
}

/* ===== TOPBAR VERSION ===== */
.topbar-version {
    color: #777;          /* cinza escuro */
    font-size: 11px;
    font-weight: normal;
    opacity: 0.9;
}

.topbar-meta {
    font-size: 11px;       /* igual à versão */
    color: #777;
    font-weight: normal;
    opacity: 0.9;
    white-space: nowrap;
}
/* ===== RELEASE BADGE ===== */
.release-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.release-rc {
    background: #ff9800;
    color: #000;
}

.release-stable {
    background: #4caf50;
    color: #000;
}

.release-dev {
    background: #f44336;
    color: #000;
}


.info-box-red {
    padding: 6px 10px;
    border: 1px solid #a00;
    background: #1a0000;
    color: #ff6666;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.info-box-red a {
    color: #fff;
    text-decoration: underline;
}


.btn-onair {
    background: #1b5e20;
    color: #e0ffe0;
    border: 1px solid #2e7d32;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}

.btn-onair.onair-active {
    background: #b71c1c;
    border-color: #ff5252;
    color: #fff;
}

.onair-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}





.online-widget {
    font-size: 12px;
    color: #ddd;
}

.online-widget h4 {
    margin: 0 0 6px;
    font-size: 14px;
}

.online-section {
    margin-bottom: 8px;
}

.online-list {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.online-now li {
    color: #00ff00;
    font-weight: bold;
}

.muted {
    color: #777;
}







/* =========================================================
   ANDROID / MOBILE — FIX GLOBAL
   ========================================================= */
@media screen and (max-width: 768px) {

    /* ---------- HOME GRID ---------- */
    [class^="home-row"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
    }

    .home-box,
    .home-box-large,
    .home-box-small,
    .home-box-tiny {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-height: auto !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .home-box {
        overflow-x: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .home-box table {
        width: 100%;
        table-layout: fixed;
    }

    .home-box td,
    .home-box th {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* ---------- MENU PRINCIPAL ---------- */
    .main-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-menu ul {
        display: flex;
        flex-wrap: nowrap;          /* uma linha */
        gap: 6px;
        padding: 6px 8px;
        margin: 0;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .main-menu li {
        flex: 0 0 auto;
        margin: 0;
    }

    .main-menu a {
        padding: 5px 8px;
        font-size: 12px;
        border-radius: 6px;
        line-height: 1.1;
    }
}

/* =========================================================
   ANDROID — MAPA VISÍVEL NO HOME
   ========================================================= */
@media screen and (max-width: 768px) {

    /* garantir altura mínima do mapa */
    #map,
    #osm-map {
        width: 100%;
        height: 300px !important;
        min-height: 300px;
    }

    /* garantir que o container não colapsa */
    .home-box-large:has(#map),
    .home-box-large:has(#osm-map) {
        min-height: 320px !important;
    }
}

/* =========================================================
   ANDROID — IFRAME DO PLAYER SEM SCROLL
   ========================================================= */
@media screen and (max-width: 768px) {

    /* container do player */
    .home-box-large {
        display: block !important;
        overflow: visible !important;
    }

    /* iframe do player */
    .play-frame iframe {
        display: block;
        width: 100%;
        height: 220px !important;   /* 👈 altura controlada */
        border: none;
        overflow: hidden !important;
    }

    /* impede scroll interno do iframe */
    .play-frame iframe::-webkit-scrollbar {
        display: none;
    }
}

.play-frame iframe {
    height: 380px !important;
}




/* =========================================================
   GEO CHAT — TEXTO INTRO MAIOR (GLOBAL)
   ========================================================= */
.chat-widget .geo-text {
    font-size: 13px;      /* antes ~11px */
    line-height: 1.55;    /* mais respirável */
    color: #ccc;          /* ligeiramente mais claro */
    margin: 6px 0;
}
