:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --danger: #dc2626;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

header h1 {
    margin: 0;
    font-size: 1.25rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

section {
    background: var(--card);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text);
}

.toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
}

label {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted);
}

input, select, button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

button {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: pointer;
}

button:hover {
    background: var(--primary-hover);
}

button#logout {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

button#logout:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    font-weight: 600;
    color: var(--muted);
    background: #f9fafb;
}

tr:hover td {
    background: #f9fafb;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 360px;
}

.login-card h1 {
    margin-top: 0;
    font-size: 1.5rem;
    text-align: center;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card label {
    width: 100%;
}

.login-card input {
    width: 100%;
}

.hint {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.error {
    color: var(--danger);
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.25rem;
}

.empty {
    color: var(--muted);
    text-align: center;
    padding: 1rem;
}
