:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --border: #334155;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
}

h1 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--accent);
}

p.subtitle {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

textarea {
    width: 100%;
    min-height: 120px;
    background: #0b1120;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
}

textarea:focus,
input[type="number"]:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.worker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

input[type="number"] {
    width: 68px;
    background: #0b1120;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.55rem 0.6rem;
    font-family: monospace;
    font-size: 0.95rem;
    text-align: center;
}

button {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--accent-hover);
    color: #fff;
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid var(--red);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.status-msg {
    color: var(--accent);
    font-size: 0.9rem;
}

.progress-wrapper {
    margin-top: 1rem;
    width: 100%;
    height: 6px;
    background: #0b1120;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.25s ease;
}

.hidden {
    display: none !important;
}

.alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--red);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.alert-warn {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--amber);
    color: #fcd34d;
}

.host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.host-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.host-ip {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
}

.host-resolved {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--muted);
}

.badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-weight: 600;
}

td.mono {
    font-family: monospace;
}

.empty {
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --border: #334155;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
}

h1 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--accent);
}

p.subtitle {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

textarea {
    width: 100%;
    min-height: 120px;
    background: #0b1120;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem;
    font-family: monospace;
    font-size: 0.95rem;
    resize: vertical;
}

textarea:focus,
input[type="number"]:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.worker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

input[type="number"] {
    width: 68px;
    background: #0b1120;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.55rem 0.6rem;
    font-family: monospace;
    font-size: 0.95rem;
    text-align: center;
}

button {
    background: var(--accent);
    color: #0f172a;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--accent-hover);
    color: #fff;
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid var(--red);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
}

.status-msg {
    color: var(--accent);
    font-size: 0.9rem;
}

.progress-wrapper {
    margin-top: 1rem;
    width: 100%;
    height: 6px;
    background: #0b1120;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.25s ease;
}

.hidden {
    display: none !important;
}

.alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--red);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.alert-warn {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--amber);
    color: #fcd34d;
}

.host-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.host-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.host-ip {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
}

.host-resolved {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--muted);
}

.badge {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-weight: 600;
}

td.mono {
    font-family: monospace;
}

.empty {
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}
