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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.nav-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: #58a6ff;
    text-decoration: none;
}

.nav-right { display: flex; gap: 1rem; align-items: center; }
.nav-right a { color: #8b949e; text-decoration: none; }
.nav-right a:hover { color: #e6edf3; }

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid;
}
.alert-success { background: #0d1f0d; border-color: #238636; color: #3fb950; }
.alert-error { background: #1f0d0d; border-color: #da3633; color: #f85149; }

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: #161b22;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #30363d;
}
th, td { padding: 0.75rem 1rem; text-align: left; }
th {
    background: #1c2128;
    color: #8b949e;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
td { border-top: 1px solid #21262d; }
td a { color: #58a6ff; text-decoration: none; }
td a:hover { text-decoration: underline; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9rem; color: #8b949e; }
.actions { display: flex; gap: 0.5rem; align-items: center; }
.inline { display: inline; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}
.badge-static { background: #0d2d3a; color: #58a6ff; }
.badge-proxy { background: #2d1f0d; color: #d29922; }
.badge-unknown { background: #1c1c1c; color: #8b949e; }

/* Buttons */
.btn, .btn-sm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #238636;
    color: #fff;
    border: 1px solid #2ea043;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
}
.btn:hover { background: #2ea043; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-secondary { background: #21262d; border-color: #30363d; color: #c9d1d9; }
.btn-secondary:hover { background: #30363d; }
.btn-danger { background: #da3633; border-color: #f85149; }
.btn-danger:hover { background: #b62324; }

/* Header row */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Forms */
.form-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 500px;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #c9d1d9;
    font-size: 0.9rem;
}
.form-group small { color: #8b949e; }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88,166,255,0.15);
}
.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.radio-group { display: flex; gap: 1.5rem; }
.radio-group label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.input-suffix { display: flex; align-items: center; gap: 0; }
.input-suffix input { border-radius: 6px 0 0 6px !important; }
.input-suffix .suffix {
    padding: 0.5rem 0.75rem;
    background: #1c2128;
    border: 1px solid #30363d;
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: #8b949e;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Login */
.login-container {
    max-width: 360px;
    margin: 8rem auto;
    text-align: center;
}
.login-container h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.login-container .subtitle { color: #8b949e; margin-bottom: 2rem; }
.login-container form { text-align: left; }
.login-container .btn { width: 100%; margin-top: 0.5rem; }
