:root {
    --card: #282828;
    --bg: #282828;
    --text: #eaeaea;
    --muted: #a1a1aa;
    --border: #424141;
    --primary: #3b82f6;
}

[data-theme="light"] {
    --bg: #fbf1c7;
    --card: #f9f5d7;
    --text: #0f172a;
    --muted: #475569;
    --border: #cbd5e1;
    --primary: #2563eb;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}

.container {
    max-width: 700px;
    margin: 60px auto;
    padding: 32px;
    background-color: var(--card);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

p.description {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.6;
}

textarea {
    width: 100%;
    min-height: 140px;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
}

textarea::placeholder {
    color: #71717a;
}

button {
    margin-top: 16px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

button:hover:not(:disabled) {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    margin-top: 24px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.result.positive {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.result.negative {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.latency {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
}
