:root {
    --primary: #6c5ce7;
    --primary-dark: #574bd1;
    --danger: #d63031;
    --bg: #f7f8fa;
    --text: #2d3436;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(90%, 960px);
    margin-inline: auto;
    padding: 1rem 0;
}

.navbar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
}
.navbar .brand {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-right: auto;
}
.btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    background: #dfe6e9;
    color: var(--text);
}
.btn.primary { background: var(--primary); color: white; }
.btn.danger { background: var(--danger); color: white; }
.btn.small { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; border-bottom: 1px solid #e0e0e0; text-align: left; }
code { font-family: monospace; }
.inline-form { display: inline; }
.json-editor { height: 400px; border: 1px solid #ced4da; border-radius: 4px; margin-bottom: 1rem; }
.flash-list { list-style: none; padding: 0; }
.flash { padding: 0.5rem; margin-bottom: 0.5rem; border-radius: 4px; }
.flash.success { background: #55efc4; }
.flash.error { background: #ffeaa7; }
label { display:block; margin-top:0.5rem; font-weight:600; }
input[type=datetime-local], input[type=number] {
    padding:0.4rem 0.6rem;
    width:100%;
    max-width:300px;
    border:1px solid #ced4da;
    border-radius:4px;
}
@media (max-width: 600px) {
  .btn { width: 100%; margin-top: 0.25rem; text-align: center; }
}