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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

nav {
    background: #1a1a2e;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-logo { height: 24px; width: 24px; }
nav a { color: #e0e0e0; text-decoration: none; }
nav a:hover { color: #fff; }

main { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

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

.flashes { margin-bottom: 1rem; }
.flash { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 0.5rem; }
.flash.error { background: #fce4e4; color: #a94442; }
.flash.success { background: #dff0d8; color: #3c763d; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    flex: 1;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: #1a1a2e; }
.stat-label { display: block; font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f9f9f9; font-weight: 600; }
tr:last-child td { border-bottom: none; }

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 0.9em; }

a { color: #2563eb; }
a:hover { text-decoration: underline; }

.login-box {
    max-width: 360px;
    margin: 4rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.login-logo { display: block; width: 80px; height: 80px; margin: 0 auto 1rem; }
.login-box h1 { text-align: center; margin-bottom: 1.5rem; }

form label { display: block; margin-top: 0.75rem; font-weight: 500; }
form input[type="date"],
form textarea,
form input[type="text"],
form input[type="password"],
form input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.25rem;
    font-size: 1rem;
}
form button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
form button:hover { background: #16213e; }

.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #a93226; }

.create-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.detail-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.detail-card p { margin-bottom: 0.4rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.inline-form { display: inline; margin-top: 0.75rem; }
