* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}
main {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: calc(100vh - 70px);
}
aside {
  background: #0b1220;
  border-right: 1px solid #1f2937;
}
.nav {
  padding: 12px;
}
.nav-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #111827;
}
.nav-item.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
#content {
  padding: 24px;
}
#status {
  margin-bottom: 12px;
  color: #cbd5e1;
}
.controls {
  margin-bottom: 12px;
}
button {
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: #334155;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #1f2937;
}
th {
  text-align: left;
  background: #0b1220;
}
tr:hover {
  background: #1f2937;
}
.action-btn {
  background: transparent;
  color: #cbd5e1;
  padding: 6px;
}
.action-btn:hover {
  color: white;
}
#modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal.hidden {
  display: none;
}
.modal-content {
  background: #0b1220;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
textarea {
  width: 100%;
  background: #111827;
  color: #e2e8f0;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 10px;
  margin: 10px 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
