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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #0f1117;
    color: #e4e6eb;
    line-height: 1.6;
}

/* ── Login ── */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    background: #1a1d29;
    border: 1px solid #2a2d3a;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
}
.login-box h1 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
}
.login-box label {
    display: block;
    font-size: 13px;
    color: #9198a8;
    margin: 14px 0 6px;
}
.login-box input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2a2d3a;
    background: #0f1117;
    color: #e4e6eb;
    font-size: 15px;
}
.login-box button {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #4f7cff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.login-box button:hover { background: #3d68e8; }
.error-msg {
    background: #3a1a1a;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ── Layout ── */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: #1a1d29;
    border-bottom: 1px solid #2a2d3a;
}
.brand { font-weight: 700; font-size: 17px; color: #e4e6eb; text-decoration: none; }
.logout-link { color: #ff6b6b; text-decoration: none; font-size: 14px; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }
.back-link { display: inline-block; margin-bottom: 16px; color: #4f7cff; text-decoration: none; }

/* ── Cards ── */
.card {
    background: #1a1d29;
    border: 1px solid #2a2d3a;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}
.card h2 { font-size: 16px; margin-bottom: 14px; }
.hint { color: #9198a8; font-size: 13px; margin-bottom: 12px; }

/* ── Feature grid ── */
.feature-grid { display: flex; flex-direction: column; gap: 10px; }
.feature-toggle, .feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #12141c;
    border-radius: 8px;
}
.feature-row span:first-child { flex: 1; }

.toggle-btn {
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.toggle-btn.on { background: #1a3a2a; color: #4ade80; }
.toggle-btn.off { background: #3a1a1a; color: #ff6b6b; }
.toggle-btn.big { padding: 14px 24px; font-size: 15px; width: 100%; }
.toggle-btn.small { padding: 5px 10px; font-size: 12px; }

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}
.badge.override { background: #3a2a1a; color: #f0a750; }
.badge.inherited { background: #1a1d29; color: #9198a8; }

/* ── Tables ── */
.src-table, .info-table { width: 100%; border-collapse: collapse; }
.src-table th, .src-table td {
    text-align: right;
    padding: 10px 12px;
    border-bottom: 1px solid #2a2d3a;
    font-size: 14px;
}
.src-table th { color: #9198a8; font-weight: 600; font-size: 12px; }
.info-table td { padding: 8px 10px; font-size: 14px; border-bottom: 1px solid #22252f; }
.info-table td:first-child { color: #9198a8; width: 160px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.dot.green { background: #4ade80; }
.dot.red { background: #ff6b6b; }

.btn-link {
    color: #4f7cff;
    text-decoration: none;
    font-size: 13px;
}
.btn-link.small { font-size: 11px; background: none; border: none; cursor: pointer; }

textarea {
    width: 100%;
    background: #0f1117;
    border: 1px solid #2a2d3a;
    color: #e4e6eb;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    margin-bottom: 10px;
}

button[type="submit"] {
    background: #4f7cff;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
