:root {
    --pico-font-size: 16px;
}

nav {
    background: var(--pico-card-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul li:first-child {
    font-weight: bold;
    margin-right: auto;
}

nav a {
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card h2 {
    margin: 0;
    font-size: 2rem;
}

.stat-card small {
    color: var(--pico-muted-color);
}

.flash-success {
    color: var(--pico-ins-color);
    font-size: 0.85rem;
}

.flash-error {
    color: var(--pico-del-color);
    font-size: 0.85rem;
}

table td, table th {
    padding: 0.5rem 0.75rem;
}

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

.actions button, .actions input[type="submit"] {
    padding: 0.25rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
}

.log-content {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

.silent-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    background: var(--pico-muted-border-color);
}

.silent-badge.on {
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}
