* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; background: #0b1020; color: #e8eefc; }
body { min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); border-right: 1px solid rgba(255,255,255,.08); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.brand { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.sidebar-spacer { flex: 1; }
.nav-btn, .ghost-btn, .primary-btn { border: 0; border-radius: 12px; padding: 12px 14px; }
.nav-btn { background: rgba(255,255,255,.04); color: #dbe7ff; text-align: left; }
.nav-btn.active { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; }
.ghost-btn { background: rgba(255,255,255,.06); color: #e8eefc; }
.primary-btn { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; box-shadow: 0 10px 30px rgba(37,99,235,.25); }
.main { padding: 28px; background: radial-gradient(circle at top, rgba(59,130,246,.18), transparent 25%), #060b16; }
.login-view { min-height: calc(100vh - 56px); display: grid; place-items: center; }
.login-card, .card { background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); backdrop-filter: blur(14px); }
.login-card { width: min(520px, 92%); padding: 32px; }
.login-card h1 { margin: 8px 0 10px; }
.eyebrow { color: #93c5fd; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.muted { color: #9fb0d3; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.user-badge { background: rgba(255,255,255,.06); padding: 10px 14px; border-radius: 999px; color: #cfe0ff; }
.app-view { display: grid; gap: 18px; }
.card { padding: 20px; }
.entity-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.entity-form .full { grid-column: 1 / -1; }
.entity-form label { display: block; margin-bottom: 6px; color: #c8d7f6; font-size: 14px; }
.entity-form input, .entity-form textarea, .entity-form select { width: 100%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #f5f8ff; padding: 12px 14px; border-radius: 12px; }
.entity-form textarea { min-height: 100px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.table-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.table-toolbar input { flex: 1; max-width: 320px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #f5f8ff; padding: 12px 14px; border-radius: 12px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
th { color: #93c5fd; font-weight: 700; }
.row-actions { display: flex; gap: 8px; }
.row-actions button { padding: 8px 10px; border-radius: 10px; border: 0; }
.row-actions .edit { background: #1d4ed8; color: white; }
.row-actions .delete { background: #b91c1c; color: white; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-spacer { display: none; }
  .entity-form { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}