/* ========================================================= */
/* ========== XLX026 BRASIL - LAYOUT PROFISSIONAL ========= */
/* ========================================================= */

/* ===== RESET E BASE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #252525 0, #131313 45%, #050505 100%);
    color: #cfe8d2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", calibri, verdana, arial, sans-serif;
    min-width: 760px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-size: 25pt;
    color: #e9ffe9;
    letter-spacing: 0.03em;
}

a img {
    border: 0;
}

/* ========================================================= */
/* =================== HEADER FIXO ======================== */
/* ========================================================= */

#top {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 115px;
    min-width: 760px;
    background: linear-gradient(90deg, #101418 0%, #151b20 30%, #101418 100%);
    background-repeat: no-repeat;
    background-position: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(118, 255, 3, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

#top img {
    max-height: 80px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

#top .top-inner {
    width: 100%;
    max-width: 1180px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

#top .top-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#top .top-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e3fbe5;
}

#top .top-subtitle {
    font-size: 0.9rem;
    color: #a7c8ae;
}

#top .top-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    font-size: 0.85rem;
    color: #9fd59f;
}

#top .top-status strong {
    color: #cfffce;
}

#suptime {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #76ff03;
}

/* ========================================================= */
/* =================== MENUBAR ============================ */
/* ========================================================= */

#menubar {
    position: fixed;
    left: 0;
    top: 115px; /* Logo após o header */
    width: 100%;
    height: 40px;
    min-width: 760px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(to bottom, #20252b 5%, #12171b 95%);
    z-index: 999;
    border-bottom: 1px solid rgba(70, 70, 70, 0.9);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

#menu {
    margin-top: 0;
    height: 34px;
}

/* Botão hambúrguer - DESKTOP: oculto */
.menu-toggle {
    display: none;
}

/* ========================================================= */
/* ================ WRAPPER E CONTENT ===================== */
/* ========================================================= */

#wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 12px;
}

#content {
    position: relative;
    width: 100%;
    margin-top: calc(115px + 40px + 16px); /* header + menu + espaçamento */
    color: #e4f5e3;
    padding-bottom: 80px; /* espaço pro footer fixo */
}

/* ========================================================= */
/* ==================== LINKS ============================= */
/* ========================================================= */

a.tip,
.pl,
.listinglink,
#content a {
    color: #8ab4ff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.1s ease;
}

a.tip:hover,
.pl:hover,
.listinglink:hover,
#content a:hover {
    color: #cde2ff;
    text-shadow: 0 0 6px rgba(141, 209, 255, 0.9);
    transform: translateY(-0.5px);
}

/* Tooltip com bandeiras */
a.tip:hover {
    position: relative;
}

a.tip span {
    display: none;
}

a.tip:hover span {
    display: block;
    position: absolute;
    top: 10px;
    z-index: 50;
    background: #2c2c2c;
    opacity: 0.95;
    border-radius: 5px;
    font-size: 12pt;
    color: #c3dcba;
    white-space: nowrap;
    padding: 6px 10px;
    margin: 10px;
    border: 1px solid #414141;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.8);
}

/* ========================================================= */
/* ================ MENU LINKS ============================ */
/* ========================================================= */

.menulink,
.menulinkactive {
    font-size: 13.5pt;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid rgba(120, 120, 120, 0.8);
    padding: 4px 12px;
    margin-left: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 10% 0, #343c46 0, #252b33 40%, #191f25 100%);
    color: #dde8de;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.08s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.menulink:hover {
    background: linear-gradient(135deg, #f5ff8b 0%, #ffd54f 40%, #ffb300 100%);
    color: #111;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.85);
    transform: translateY(-1px);
}

.menulinkactive {
    background: radial-gradient(circle at 0 0, #ff5252 0, #c62828 45%, #7f1515 100%);
    color: #fffcf0;
    box-shadow: 0 0 0 2px rgba(255, 138, 101, 0.7) inset, 0 8px 20px rgba(0, 0, 0, 0.9);
}

/* ========================================================= */
/* =============== TABELAS COMPACTAS ====================== */
/* ========================================================= */

.listingtable {
    width: 100%;
    margin-top: 12px;
    border: 1px solid #444;
    font-size: 11pt;
    background: radial-gradient(circle at top, #262c32 0, #1f252b 45%, #181d22 100%);
    color: #e2f1e6;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.8);
}

.listingtable th {
    height: 34px;
    text-align: center;
    background: linear-gradient(to bottom, #404852 0%, #252c34 90%);
    color: #f1f6ff;
    padding: 6px 4px;
    font-size: 10.5pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #333c46;
}

.listingtable th:first-child {
    border-top-left-radius: 10px;
}

.listingtable th:last-child {
    border-top-right-radius: 10px;
}

.listingtable td {
    padding: 6px 6px;
    border: 1px solid rgba(68, 68, 68, 0.8);
    font-size: 11pt;
    background: rgba(20, 24, 28, 0.9);
    backdrop-filter: blur(3px);
}

.listingtable tr:nth-child(even) td {
    background: rgba(29, 35, 40, 0.95);
}

.listingtable tr:hover td {
    background: linear-gradient(90deg, rgba(70, 81, 94, 0.95), rgba(46, 58, 70, 0.98));
    box-shadow: inset 3px 0 0 #76ff03;
}

/* TX/RX/IDLE ícones sempre visíveis */
.listingtable td img {
    display: inline-block;
    vertical-align: middle;
}

img[src*="tx.gif"],
img[src*="rx.gif"],
img[src*="idle.gif"] {
    display: inline-block !important;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Campos de filtro */
.FilterField {
    background: #151a1f;
    border: 1px solid #3b4a54;
    border-radius: 999px;
    padding: 6px 10px;
    color: #e2f1e6;
    font-size: 10.5pt;
    outline: none;
    min-width: 110px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.FilterField::placeholder {
    color: #68757f;
}

.FilterField:focus {
    border-color: #76ff03;
    background: #181f24;
    box-shadow: 0 0 0 1px rgba(118, 255, 3, 0.5);
}

.FilterSubmit {
    background: linear-gradient(135deg, #76ff03 0%, #4caf50 40%, #2e7d32 100%);
    border: none;
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 10.5pt;
    font-weight: 600;
    color: #061106;
    cursor: pointer;
    margin-left: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.FilterSubmit:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.FilterSubmit:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

/* ========================================================= */
/* =================== ERROR BOX ========================== */
/* ========================================================= */

.error {
    font-size: 12pt;
    font-weight: bold;
    color: #ff6f61;
    background: #3a3a3a;
    width: 90%;
    max-width: 900px;
    padding: 15px;
    margin: 8px auto;
    border-radius: 8px;
    border: 1px solid #ff8a65;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* ========================================================= */
/* =================== FOOTER ============================= */
/* ========================================================= */

#footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(18, 22, 26, 0.98);
    color: #c3dcba;
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid #444;
    z-index: 800;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

/* ========================================================= */
/* ========== CENTRALIZAÇÃO MÓDULOS XLX026 ================ */
/* ========================================================= */

.modules {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: flex-start;
    gap: 18px;
    margin-top: 18px;
}

.module-card {
    flex: 0 1 260px;
    max-width: 280px;
    text-align: center;
    background: radial-gradient(circle at 0 0, #2e363e 0, #1d2329 45%, #12171c 100%);
    border-radius: 14px;
    padding: 12px 10px;
    border: 1px solid #2f3a44;
    color: #e6f5ec;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.9);
    border-color: #76ff03;
}

/* ========================================================= */
/* ========== GALERIA DE VÍDEOS 2x2 ====================== */
/* ========================================================= */

.videos-categoria {
    margin-top: 30px;
}

.videos-categoria h2 {
    font-size: 1.2rem;
    color: #e6f5ec;
    margin-bottom: 14px;
    border-left: 4px solid #76ff03;
    padding-left: 10px;
    letter-spacing: 0.03em;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.video-thumb {
    background: #181d22;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #242c34;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.video-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.75);
}

.video-thumb img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #242c34;
}

.video-thumb p {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #d4f7dd;
}

/* ========================================================= */
/* =============== POPUP PARA VÍDEO ======================= */
/* ========================================================= */

#video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

#video-popup iframe {
    width: 90%;
    max-width: 900px;
    height: 60vh;
    border-radius: 10px;
    border: none;
}

#popup-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* ========================================================= */
/* ============ RESPONSIVIDADE MOBILE ===================== */
/* ========================================================= */

@media (max-width: 760px) {
    body {
        min-width: 100%;
        font-size: 12px;
    }

    #top {
        height: auto;
        padding: 8px 0 10px;
    }

    #top .top-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #top img {
        max-height: 60px;
    }

    #menubar {
        height: auto;
        min-height: 50px;
        top: auto;
        padding: 6px 10px;
        position: relative;
        box-shadow: none;
    }

    /* Botão hambúrguer visível no mobile */
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 6px;
        right: 15px;
        width: 40px;
        height: 35px;
        border-radius: 6px;
        border: 1px solid #444;
        background: #222;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #f5f5f5;
        margin: 3px 0;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    #menu {
        display: none;
        height: auto;
        margin-top: 40px;
    }

    body.menu-open #menu {
        display: block;
    }

    #menu td {
        display: block;
        margin: 5px 0;
    }

    .menulink,
    .menulinkactive {
        font-size: 12pt;
        margin-left: 0;
        display: block;
        text-align: center;
        padding: 8px 15px;
        border-radius: 10px;
    }

    #content {
        margin-top: 10px;
    }

    #wrapper {
        max-width: 100%;
        padding: 0 8px;
    }

    .listingtable {
        font-size: 10pt;
        display: block;
        overflow-x: auto;
    }

    .listingtable th,
    .listingtable td {
        padding: 4px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/* =============== AJUSTES FINAIS ========================= */
/* ========================================================= */

html {
    scroll-behavior: smooth;
}

:focus {
    outline: 2px solid #76ff03;
    outline-offset: 2px;
}
