:root {
    color-scheme: light;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    background-color: #f4f6fb;
    color: #1e2a3b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    width: min(420px, 100%);
}

.card h1 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

input,
select,
textarea,
button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #d7dde6;
    font: inherit;
}

button {
    background: #2f6fed;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button.danger {
    background: #d64646;
}

button + button {
    margin-left: 0.5rem;
}

.alert {
    background: #ffe8e8;
    color: #a92020;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.notice {
    background: #e8f1ff;
    color: #1c4180;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #101826;
    color: #fff;
    padding: 2rem 1.5rem;
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar nav {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar a {
    color: #c7d2fe;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.content {
    flex: 1;
    padding: 2.5rem;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.panel {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

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

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #b91c1c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

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

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
    min-height: 120px;
    white-space: pre-wrap;
}
