body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #004b8d;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav a {
    color: #fff;
    margin-right: 1rem;
    text-decoration: none;
}

header nav a:last-child {
    margin-right: 0;
}

header nav a.active {
    text-decoration: underline;
    font-weight: bold;
}

main {
    padding: 1.5rem;
}

section {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth {
    max-width: 400px;
    margin: 5rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

label small {
    font-weight: normal;
    color: #555;
    margin-top: 0.25rem;
}

input, select, textarea, button {
    padding: 0.5rem;
    font-size: 1rem;
}

button {
    background: #004b8d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button.primary {
    background: #0a8754;
}

button:hover {
    opacity: 0.9;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

.form-grid button {
    grid-column: 1 / -1;
    justify-self: start;
    padding-inline: 1.5rem;
}

.error {
    color: #b00020;
}

.success {
    color: #0a8754;
}

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

table th, table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.secret-link img {
    display: block;
    margin-top: 0.5rem;
    max-width: 200px;
    height: auto;
}

.secret-link .qr-fallback {
    margin-top: 0.5rem;
    font-style: italic;
    color: #555;
}

.inline-form {
    display: inline;
}

body.secret {
    background: #004b8d;
    color: #fff;
}

body.secret main {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

body.secret input,
body.secret select,
body.secret textarea {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
}

body.secret button {
    background: #ffb703;
    color: #222;
}
