
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}
.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}
aside {
    background: #020817;
    padding: 20px;
    border-right: 1px solid #111827;
}
aside h1 {
    font-size: 20px;
    margin: 0 0 16px;
    color: #38bdf8;
}
aside nav a {
    display: block;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}
aside nav a.active,
aside nav a:hover {
    background: #111827;
    color: #e5e7eb;
}
main {
    padding: 24px;
}
.card {
    background: #020817;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid #111827;
    box-shadow: 0 14px 40px rgba(15,23,42,0.7);
}
.card h2 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #e5e7eb;
}
label {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
}
input, select, textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #111827;
    background: #020817;
    color: #e5e7eb;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 8px;
}
button {
    border: none;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    background: #38bdf8;
    color: #020817;
    margin-right: 6px;
}
button.secondary {
    background: #111827;
    color: #9ca3af;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
th, td {
    padding: 6px 8px;
    border-bottom: 1px solid #111827;
}
th {
    text-align: left;
    color: #9ca3af;
    font-weight: 500;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #0f172a;
    font-size: 10px;
    color: #9ca3af;
}
.danger {
    color: #f97316;
}
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #38bdf8;
    color: #020817;
    font-size: 13px;
    z-index: 9999;
}
.toast.error {
    background: #ef4444;
    color: white;
}
