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

body {
    font-family: 'Roboto Mono', monospace;
    background: #000000;
    color: #c5c9d1;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-bar {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.control-group {
    flex: 1;
}

.start-button {
    width: 100%;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.start-button.active {
    background: #10ff3a;
    border-color: #10ff3a;
    color: #000000;
}

.start-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    color: #888888;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e8eaed;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    transition: all 0.2s;
}

/* Remove spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: #0a0a0a;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-row {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.server-row:hover {
    background: #0f0f0f;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.server-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-excellent {
    background: #10ff3a;
}

.status-good {
    background: #0b8020;
}

.status-fair {
    background: #fbbf24;
}

.status-poor {
    background: #f87171;
}

.status-offline {
    background: #52525b;
}

.server-name {
    font-family: 'Segoe UI Emoji', 'Roboto Mono', monospace;
    font-weight: 600;
    color: #ffffff;
    min-width: 140px;
    font-size: 0.95rem;
}

.server-ip {
    color: #888888;
    font-size: 0.85rem;
    min-width: 130px;
    font-weight: 400;
}

.server-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-box {
    text-align: right;
}

.stat-box-label {
    font-size: 0.7rem;
    color: #888888;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.stat-box-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.ping-excellent {
    color: #10ff3a !important;
}

.ping-good {
    color: #0b8020 !important;
}

.ping-fair {
    color: #fbbf24 !important;
}

.ping-poor {
    color: #f87171 !important;
}

.loss-high {
    color: #f87171 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 13px;
    }

    .container {
        max-width: 100%;
    }

    .settings-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .server-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .server-info {
        width: 100%;
    }

    .server-name {
        min-width: auto;
    }

    .server-ip {
        min-width: auto;
    }

    .server-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .stat-box {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .server-info {
        flex-wrap: wrap;
    }

    .server-stats {
        gap: 1rem;
    }
}
