* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
}

#app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#topnav {
  height: 48px;
  flex-shrink: 0;
}

#body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#sidebar {
  width: 220px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  padding: 12px;
}

#sidebar nav a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}

#sidebar nav a:hover {
  background: #e0e0e0;
}

#app {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

h2 {
  margin-top: 0;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  padding: 6px;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  font-size: 0.85rem;
  color: #555;
}

.status.error,
.error {
  color: #b00020;
}

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
}

.table th {
  background: #f0f0f0;
}

#topnav button {
  background: #444;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

#topnav button:hover {
  background: #555;
}

#user-dropdown button {
  background: none;
  color: #000;
  padding: 8px 10px;
  text-align: left;
}

#user-dropdown button:hover {
  background: #eee;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.sidebar-nav a:hover {
  background: #e8e8e8;
}

.sidebar-nav a.active {
  background: #d0d0d0;
  font-weight: 600;
}

.sidebar-nav .icon {
  width: 1.2em;
  text-align: center;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal > div {
  background: #fff;
  padding: 20px;
  min-width: 300px;
}


