
/* IN9NET - Teste de Estabilidade V005 */

html,
body {
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #0d1622 !important;
    color: #eaf0f7 !important;
    color-scheme: dark;
}

body {
    font-family: Arial, sans-serif;
    padding: 0 18px 25px;
}

.in9net-stability-top {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 15px 10px;
    display: flex;
    justify-content: flex-start;
}

.in9net-brand-link {
    text-decoration: none !important;
}

.in9net-stability-top .in9net-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.in9net-stability-top .in9net-wordmark {
    color: #fff;
    font-weight: 900;
    font-size: 43px;
    letter-spacing: -3px;
    line-height: 1;
}

.in9net-stability-top .in9net-wordmark span {
    color: #ff943e;
}

.in9net-stability-top .in9net-brand small {
    color: #ffd2aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

body > h1 {
    margin: 8px auto 8px;
    color: #fff !important;
    font-size: clamp(25px, 3.4vw, 38px);
    line-height: 1.2;
    text-align: center;
}

body > nav {
    margin: 0 auto 12px;
    text-align: center;
}

body > nav a {
    display: inline-block;
    color: #ffad69 !important;
    text-decoration: none;
    border: 1px solid #3a4a5d;
    border-radius: 999px;
    padding: 9px 18px;
    background: rgba(255,255,255,.02);
}

body > nav a:hover {
    background: rgba(255,155,67,.10);
}

.in9net-stability-description {
    max-width: 820px;
    margin: 0 auto 20px;
    color: #aebed0;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: min(100%, 1060px);
    margin: 15px auto 10px;
    padding: 18px;
    border: 1px solid #2d3a4b;
    border-radius: 18px;
    background: #152130;
}

#durationSelect,
#targetSelect,
#server {
    background: #1d2b3a;
    color: #fff;
    border: 1px solid #46576b;
    border-radius: 9px;
    padding: 10px 12px;
    margin: 0;
    min-height: 43px;
    max-width: 100%;
}

#startBtn,
#resetBtn {
    margin: 0;
    height: 44px;
    line-height: 40px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}

#startBtn {
    color: #152130;
    border: 2px solid #ff9b43;
    background: #ff9b43;
    min-width: 145px;
}

#startBtn:hover {
    background: #ffb16e;
}

#startBtn:before {
    content: "INICIAR";
}

#startBtn.finding:before {
    content: "LOCALIZANDO...";
}

#startBtn.running {
    background: #ad3644;
    border-color: #e0717a;
    color: #fff;
}

#startBtn.running:before {
    content: "CANCELAR";
}

#startBtn.disabled {
    background: #273546;
    color: #8b98a9;
    border-color: #536172;
}

#resetBtn {
    border: 1px solid #526175;
    background: transparent;
    color: #e6edf5;
    min-width: 110px;
}

#serverArea {
    margin: 15px auto;
    color: #bac7d7;
}

#rating {
    font-size: 18px;
    margin: 14px auto;
}

#rating.great,
#rating.good {
    color: #67d6aa;
}

#rating.poor {
    color: #ffaf50;
}

#rating.bad {
    color: #ff777e;
}

#test {
    max-width: 1060px;
    margin: 14px auto 20px;
    padding: 25px 12px;
    background: #152130;
    border: 1px solid #2d3a4b;
    border-radius: 18px;
}

#test .testGroup {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
}

#test .testGroup + .testGroup {
    margin-top: 15px;
}

#test .testArea2 {
    flex: 1 1 165px;
    width: auto;
    height: auto;
    min-height: 104px;
    padding: 14px 8px;
    background: #1b2a3a;
    border: 1px solid #304255;
    border-radius: 13px;
}

#test .testName {
    color: #aab9cb;
    font-size: 15px !important;
    margin-bottom: 9px;
}

#test .meterText {
    color: #f3f7fb;
    font-size: 32px !important;
    font-weight: 600;
}

#statCurrent,
#statAvg,
#statJitter {
    color: #ffab68 !important;
}

#test .unit {
    color: #b0c0d0;
    font-size: 13px;
}

#chartContainer {
    width: min(100%, 1060px);
    max-width: 1060px;
    margin: 15px auto;
}

#pingChart {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 300px;
    background: #121e2b !important;
    border: 1px solid #304255 !important;
    border-radius: 16px;
}

#optionalControls {
    width: min(100%, 1060px);
    max-width: 1060px;
    margin: 15px auto;
    padding: 20px;
    background: #152130;
    border: 1px solid #2d3a4b;
    border-radius: 16px;
}

#optionalControls label {
    color: #c4d0df;
}

#downloadCsvBtn {
    border: 1px solid #ff9b43;
    color: #ffb577;
    background: transparent;
    border-radius: 22px;
    padding: 10px 20px;
}

#downloadCsvBtn:hover {
    background: #ff9b43;
    color: #152130;
}

.footer {
    margin: 22px auto;
    padding: 0 15px 18px;
    font-size: 13px;
    color: #b2bfce;
    text-align: center;
}

.footer a {
    color: #ffb577 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 650px) {
    body {
        padding: 0 10px 20px;
    }

    .in9net-stability-top {
        justify-content: center;
    }

    #controls {
        padding: 14px;
    }

    #durationSelect,
    #targetSelect {
        flex: 1 1 145px;
    }

    #test {
        padding: 12px 8px;
    }

    #test .testArea2 {
        flex-basis: 130px;
        min-height: 95px;
    }

    #test .meterText {
        font-size: 27px !important;
    }

    #pingChart {
        height: 230px;
    }
}
