@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

:root {
    --page-bg: #050e1e;
    --page-bg-alt: #0b1628;
    --glass: rgba(8, 20, 40, 0.8);
    --card-border: rgba(148, 163, 184, 0.25);
    --muted: #94a3b8;
    --accent: #34d399;
    --accent-2: #38bdf8;
    --danger: #f87171;
    --warning: #fbbf24;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-size: 16px !important;
    font-family: "Nunito Sans", sans-serif;
    color: #ffffff;
    background-color: #15243a;
    line-height: 1.5;
}

h1 {
    position: relative;
    background: linear-gradient(#f5fbff, #bfe6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    margin: 0 0 0.3rem 0;
    padding: 0;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 2em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h2,
h3,
h4,
h5,
h6 {
    position: relative;
    background: linear-gradient(#ffe98d, #e19f27);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    color: #ecbc62;
    padding-bottom: 5px;
}

p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

#mainNav-links {
    padding: 0 1.4em;
    font-family: 'Lexend', sans-serif;
    color: #a5b9c6;
    text-transform: uppercase;
    line-height: 3em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

#mainNav-links #active {
    color: #ecbc62;
    text-shadow: 0 0 8px #ecbc62;
}

.page-shell {
    position: relative;
    isolation: isolate;
}

.hero-badge {
    letter-spacing: 0.3em;
}

.glass-panel {
    background: var(--glass);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(20px);
}

.input-section {
    padding: 28px 32px;
}

@media (max-width: 640px) {
    .input-section {
        padding: 20px;
    }
}

.status-card {
    padding: 32px;
}

.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.status-indicator.online {
    background: linear-gradient(135deg, var(--accent) 0%, #4ade80 100%);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.25);
}

.status-indicator.partial {
    background: linear-gradient(135deg, var(--warning) 0%, #facc15 100%);
    box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.25);
}

.status-indicator.offline {
    background: linear-gradient(135deg, var(--danger) 0%, #fb7185 100%);
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.25);
}

.status-text {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
}

.status-text.online {
    color: var(--accent);
}

.status-text.partial {
    color: var(--warning);
}

.status-text.offline {
    color: var(--danger);
}

.hytale-badge {
    display: inline-flex;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.value {
    color: #f8fafc;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.protocol-card {
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.protocol-status {
    font-weight: 600;
    color: #cbd5f5;
}

.protocol-status.responding {
    color: var(--accent);
}

.protocol-status.partial {
    color: var(--warning);
}

.protocol-status.not-responding {
    color: var(--danger);
}

.protocol-latency {
    font-size: 0.9rem;
    color: var(--muted);
}

.protocol-extra {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
    word-break: break-word;
}

.server-response {
    border-radius: 22px;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    padding: 24px;
    background: rgba(15, 118, 230, 0.08);
}

.response-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

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

.note-section {
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
    padding: 16px 20px;
}

.note-section p {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.95rem;
}

.error-section {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    border-radius: 22px;
    padding: 20px 24px;
    color: #fecdd3;
}

.btn-loader svg {
    width: 20px;
    height: 20px;
}

footer {
    color: var(--muted);
}