* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2430;
}

nav {
    background: #1f2430;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: #f5f6f8;
    text-decoration: none;
    font-size: 0.95rem;
}

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

nav .brand { font-weight: 600; margin-right: auto; }

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 { font-size: 1.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; }

.card {
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #e2e4e9;
    font-size: 0.92rem;
}

th { background: #eceef2; font-weight: 600; }

tr:hover td { background: #fafbfc; }

a.button, button, input[type="submit"] {
    display: inline-block;
    background: #2f6feb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

a.button:hover, button:hover { background: #2559c2; }

a.button.secondary, button.secondary {
    background: #e2e4e9;
    color: #1f2430;
}

a.button.secondary:hover { background: #cfd2d9; }

form.inline { display: inline; }

label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-size: 0.88rem;
    color: #444;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], textarea, select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d0d3da;
    border-radius: 6px;
    font-size: 0.92rem;
}

.error {
    background: #fdecea;
    color: #922;
    border: 1px solid #f5c2bd;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

.muted { color: #777; font-size: 0.85rem; }

.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #e2e4e9;
    font-size: 0.8rem;
}

.actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

.comment {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.comment:last-child { border-bottom: none; }
