/* WebRust-skin voor Adminer 4.8.1 — matcht dashboard.webrust.nl */

:root {
    --wr-blue: #2563ff;
    --wr-blue-hover: #1d4fd8;
    --wr-blue-light: #eff4ff;
    --wr-blue-mid: #c7d8ff;
    --wr-text: #111827;
    --wr-muted: #4b5563;
    --wr-border: #e4e8f0;
    --wr-bg: #ffffff;
    --wr-bg-soft: #f6f8fc;
    --wr-green: #16c073;
    --wr-green-light: #e8faf3;
    --wr-red: #ef4444;
    --wr-red-light: #fef2f2;
    --wr-amber: #f59e0b;
    --wr-amber-light: #fffbeb;
    --wr-r: 10px;
    --wr-r-sm: 6px;
    --wr-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --wr-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--wr-bg-soft);
    color: var(--wr-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body { padding: 24px 24px 24px 280px; }

/* ─── Sidebar / menu ──────────────────────────────── */
#menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 256px;
    margin: 0;
    padding: 20px 16px;
    background: var(--wr-bg);
    border-right: 1px solid var(--wr-border);
    overflow-y: auto;
    z-index: 10;
}

#menu h1 {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--wr-border);
}

#menu h1 a.h1 {
    color: var(--wr-blue);
    font-weight: 700;
    text-decoration: none;
}

#menu h1 .version { color: var(--wr-muted); font-weight: 400; font-size: 11px; }

#menu p {
    margin: 12px 0;
    padding: 0;
    font-size: 12px;
    color: var(--wr-muted);
}

#menu p.links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 16px 0;
}

#menu p.links a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--wr-r-sm);
    color: var(--wr-text);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}

#menu p.links a:hover { background: var(--wr-bg-soft); color: var(--wr-blue); }
#menu p.links a.active { background: var(--wr-blue-light); color: var(--wr-blue); font-weight: 500; }

#menu select, #menu input {
    width: 100%;
    margin: 4px 0;
}

#menu .logout {
    margin-top: 12px;
}

#menu .logout input[type=submit] {
    width: 100%;
    background: var(--wr-bg-soft);
    color: var(--wr-text);
    border: 1px solid var(--wr-border);
    box-shadow: none;
}
#menu .logout input[type=submit]:hover { background: var(--wr-red-light); color: var(--wr-red); border-color: var(--wr-red); }

#dbs { margin: 8px 0 12px; }

#tables {
    margin-top: 8px;
    font-size: 13px;
}

#tables li { list-style: none; padding: 0; }

#tables a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--wr-r-sm);
    color: var(--wr-text);
    text-decoration: none;
    font-size: 12px;
}

#tables a:hover { background: var(--wr-bg-soft); color: var(--wr-blue); }
#tables a.select { color: var(--wr-muted); }
#tables a.select:hover { color: var(--wr-blue); }
#tables .structure, #tables .view { font-weight: 500; }

/* ─── Top / breadcrumb ─────────────────────────────── */
#breadcrumb {
    position: static;
    background: none;
    border: none;
    padding: 0 0 16px 0;
    margin: 0 0 20px 0;
    color: var(--wr-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--wr-border);
}

#breadcrumb a {
    color: var(--wr-muted);
    text-decoration: none;
}

#breadcrumb a:hover { color: var(--wr-blue); }

/* ─── Content ──────────────────────────────────────── */
#content {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

#content > p { margin: 12px 0; }

h1, h2, h3 {
    color: var(--wr-text);
    font-weight: 600;
    margin: 0 0 16px 0;
    background: none;
    border: none;
    padding: 0;
}

h2 { font-size: 22px; }
h3 { font-size: 17px; margin-top: 24px; }

h2 .jsonly,
h2 a {
    font-size: 13px;
    color: var(--wr-blue);
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}

h2 a:hover { text-decoration: underline; }

a { color: var(--wr-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--wr-blue); }

/* ─── Tables ───────────────────────────────────────── */
table {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--wr-bg);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-r);
    overflow: hidden;
    margin: 12px 0 20px 0;
    box-shadow: var(--wr-shadow-sm);
    width: auto;
    max-width: 100%;
}

table th,
table td {
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid var(--wr-border);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

table th {
    background: var(--wr-bg-soft);
    color: var(--wr-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

table tr:last-child th,
table tr:last-child td { border-bottom: none; }

table tbody tr:hover td { background: var(--wr-bg-soft); }

table.checkable tr:hover td,
table.checkable tr.checked td { background: var(--wr-blue-light); }

/* Odd/even rijen — Adminer gebruikt geen classes dus nth-child */
table.checkable tr:nth-child(even) td,
table.odds tr:nth-child(even) td { background: rgba(246, 248, 252, 0.5); }

table.checkable tr:nth-child(even):hover td,
table.odds tr:nth-child(even):hover td { background: var(--wr-blue-light); }

/* ─── Forms ────────────────────────────────────────── */
input, select, textarea, button {
    font-family: inherit;
    font-size: 13px;
    color: var(--wr-text);
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=search],
input[type=url],
select,
textarea {
    background: var(--wr-bg);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-r-sm);
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 34px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    border-color: var(--wr-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.15);
}

textarea { font-family: "JetBrains Mono", "Menlo", "Consolas", monospace; font-size: 12.5px; line-height: 1.6; }

input[type=submit],
input[type=button],
button {
    background: var(--wr-blue);
    color: #fff;
    border: 1px solid var(--wr-blue);
    border-radius: var(--wr-r-sm);
    padding: 7px 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    box-shadow: var(--wr-shadow-sm);
}

input[type=submit]:hover,
input[type=button]:hover,
button:hover { background: var(--wr-blue-hover); border-color: var(--wr-blue-hover); }

input[type=submit]:active,
input[type=button]:active,
button:active { transform: translateY(1px); }

input[type=submit][disabled],
input[type=button][disabled],
button[disabled] { background: var(--wr-border); border-color: var(--wr-border); color: var(--wr-muted); cursor: not-allowed; box-shadow: none; }

/* Secondary/outline knoppen (Adminer gebruikt ze niet expliciet, maar deze klasses komen wel voor) */
input.default,
button.default { background: var(--wr-blue); border-color: var(--wr-blue); }

/* Logout/destructive via name-attr heuristiek */
input[name="logout"] {
    background: var(--wr-bg-soft);
    color: var(--wr-text);
    border-color: var(--wr-border);
}
input[name="logout"]:hover { background: var(--wr-red-light); color: var(--wr-red); border-color: var(--wr-red); }

input[type=checkbox],
input[type=radio] { accent-color: var(--wr-blue); }

label { color: var(--wr-text); font-size: 13px; }

fieldset {
    background: var(--wr-bg);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-r);
    padding: 14px 18px;
    margin: 12px 0;
}

fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--wr-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ─── Berichten ────────────────────────────────────── */
.error, .message {
    border-radius: var(--wr-r);
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    border: 1px solid;
    background: var(--wr-bg);
}

.error {
    color: var(--wr-red);
    border-color: var(--wr-red);
    background: var(--wr-red-light);
}

.message {
    color: var(--wr-green);
    border-color: var(--wr-green);
    background: var(--wr-green-light);
}

/* ─── Code / pre ───────────────────────────────────── */
code, pre, .sqlarea {
    font-family: "JetBrains Mono", "Menlo", "Consolas", monospace;
    font-size: 12.5px;
}

pre {
    background: var(--wr-bg);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-r);
    padding: 12px 14px;
    overflow-x: auto;
}

code.jush-sql {
    background: var(--wr-bg-soft);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--wr-border);
}

/* SQL syntax highlight (jush) lichte tweaks */
.jush-sql .jush-sql_code,
.jush-sql_code { color: var(--wr-text); }
.jush-sql .jush-clr,
.jush-clr { color: #b45309; }
.jush-sql .jush-num,
.jush-num { color: #7c3aed; }
.jush-sql .jush-com,
.jush-com { color: var(--wr-muted); font-style: italic; }
.jush-sql .jush-quo,
.jush-quo { color: var(--wr-green); }
.jush-sql .jush-fn,
.jush-fn { color: var(--wr-blue); }

/* ─── Diverse ──────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--wr-border); margin: 20px 0; }

p.logout { margin: 10px 0; }

#schema { background: var(--wr-bg); border-radius: var(--wr-r); padding: 10px; }

.js .column { background: var(--wr-blue-light); border-radius: 4px; padding: 1px 4px; }

.footer {
    position: static;
    background: none;
    border: none;
    padding: 16px 0;
    color: var(--wr-muted);
    font-size: 12px;
}

.footer > div { background: none; border: none; padding: 0; }

/* Login form centreren (wanneer niet ingelogd — de auto-submit flash) */
body:not(.logged) > form {
    max-width: 360px;
    margin: 80px auto;
    background: var(--wr-bg);
    padding: 24px;
    border-radius: var(--wr-r);
    box-shadow: var(--wr-shadow-md);
    border: 1px solid var(--wr-border);
}

/* Responsive: verberg sidebar op smalle schermen */
@media (max-width: 900px) {
    body { padding: 16px; }
    #menu {
        position: static;
        width: auto;
        border-right: none;
        border-bottom: 1px solid var(--wr-border);
        margin-bottom: 16px;
    }
}
