/* =====================================================================
 * ceqi panel — style.css
 * Tema gelap, tanpa JavaScript. Seluruh kelas dipakai index.php.
 * ===================================================================== */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #0f1420;
    color: #dbe1ec;
    font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */
.top { background: #161d2e; border-bottom: 1px solid #232c42; }
.top-in {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding-top: 12px; padding-bottom: 12px;
}
.brand { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: .2px; }
.sub { color: #72809c; font-size: 13px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.top nav a { color: #9fb0cc; text-decoration: none; font-size: 14px; }
.top nav a:hover { color: #fff; }

main.wrap { padding-top: 26px; padding-bottom: 60px; }

.foot { color: #56617a; font-size: 12px; padding-bottom: 28px; }

h1 { font-size: 24px; margin: 0 0 6px; color: #f2f5fa; }
h2 { font-size: 17px; margin: 0 0 10px; color: #e8ecf4; }
p  { margin: 8px 0; }

a { color: #6fb3ff; }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em; background: #1a2336; padding: 1px 6px; border-radius: 5px;
    color: #a8d8ff; word-break: break-all;
}

.dim  { color: #8591a9; }
.small{ font-size: 13px; }
.r    { text-align: right; }

/* ---------------------------------------------------------------- messages */
.msg {
    padding: 10px 14px; border-radius: 8px; margin: 0 0 16px;
    border: 1px solid; font-size: 14px;
}
.msg-ok  { background: #10281c; border-color: #1f5c3d; color: #8fe3b0; }
.msg-err { background: #2b1216; border-color: #6d2430; color: #ffa3ae; }

/* ---------------------------------------------------------------- card */
.card {
    background: #171e30; border: 1px solid #232c42; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 20px;
}
.card.danger { border-color: #5c222c; background: #1d1317; }
.login-card { max-width: 420px; margin: 40px auto 0; }

/* ---------------------------------------------------------------- forms */
label { display: block; margin: 12px 0 5px; font-size: 14px; color: #aab6c9; }
input[type=text], input[type=password], textarea, select {
    width: 100%; padding: 9px 11px; border-radius: 8px;
    border: 1px solid #2d3a55; background: #101728; color: #e8ecf4;
    font: inherit;
}
input:focus, textarea:focus { outline: none; border-color: #3d8bff; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.5; }

button {
    margin-top: 14px; padding: 9px 18px; border-radius: 8px; border: 1px solid #2d3a55;
    background: #1e2940; color: #cfd9ea; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover { border-color: #3d8bff; color: #fff; }
button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
button.primary:hover { background: #2b7bf5; }
button.danger  { background: #a32740; border-color: #a32740; color: #fff; }
button.danger:hover { background: #c02f4c; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.small { padding: 4px 10px; font-size: 13px; margin-top: 0; }
button.linkbtn {
    margin: 0; padding: 2px 0; background: none; border: none; color: #9fb0cc;
    font-weight: 400; font-size: 14px;
}
button.linkbtn:hover { color: #fff; background: none; }

form.inline { display: inline; margin: 0; }
form.stack input, form.stack textarea { display: block; }
.row { margin-top: 8px; }

/* ---------------------------------------------------------------- table situs */
.site-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.site-head h2 { margin: 0; }
table.slugs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.slugs th, table.slugs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #212a40; }
table.slugs th { color: #72809c; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
table.slugs tr:last-child td { border-bottom: none; }
table.slugs td.r { text-align: right; }

/* ---------------------------------------------------------------- badges */
.badge {
    display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 99px;
    background: #1d5936; color: #7ee2a8; border: 1px solid #277a49; white-space: nowrap;
}
.badge.def { background: #2f4a16; border-color: #5c8a24; color: #b4e07a; }
.badge.off { background: #3a1a21; border-color: #7c2c39; color: #ff9aa8; }

/* ---------------------------------------------------------------- create details */
details.create { margin-top: 14px; border-top: 1px dashed #29334c; padding-top: 10px; }
details.create summary { cursor: pointer; color: #6fb3ff; font-size: 14px; }
details.create form { max-width: 560px; }

