@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    background: #f5f5f5;
    color: #222;
    min-height: 100vh;
}

/* ── Layout ───────────────────────────────────────────────── */
.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
}

/* ── Tables ───────────────────────────────────────────────── */
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

th {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #ddd;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* ── Forms ────────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 32px;
    display: inline-block;
    min-width: 340px;
}

label {
    font-weight: 600;
    font-size: 16px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    font-family: inherit;
    font-size: 18px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    margin-top: 4px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}

.form-row {
    margin-bottom: 16px;
}

/* ── Buttons & links ──────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    background: #333;
    color: #fff;
    transition: background .15s;
}

.btn:hover  { background: #111; }
.btn-ghost  { background: transparent; color: #333; border: 1px solid #bbb; }
.btn-ghost:hover { background: #eee; }

.action-bar {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ── Delete link ──────────────────────────────────────────── */
.del-link {
    color: #c00;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.del-link:hover { color: #900; }

/* ── Login page ───────────────────────────────────────────── */
.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ── Messages ─────────────────────────────────────────────── */
.msg {
    font-size: 20px;
    margin-bottom: 20px;
    color: #555;
}
