:root {
    --bg: #f7f7f9;
    --surface: #ffffff;
    --border: #dcdce6;
    --text: #2a2a2a;
    --primary: #2b6cb0;
    --danger: #c53030;
    --success: #2f855a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

h1, h2, h3 {
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

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

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 120px;
}

.actions {
    display: flex;
    gap: 1rem;
}

button {
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: #4a5568;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.flash {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.flash-success {
    background: #c6f6d5;
    color: #22543d;
}

.flash-error {
    background: #fed7d7;
    color: #742a2a;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: #edf2f7;
}

.status-pill.locked {
    background: #fbd38d;
}

.status-pill.submitted {
    background: #bee3f8;
}

.public-link {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 4px;
}

