:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0b0d10; color: #e7eef7; }

.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  background: #11151b;
  border-bottom: 1px solid #222a35;
  z-index: 10;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.topnav a { color: #cfe1ff; text-decoration: none; margin-left: 12px; font-size: 14px; }
.topnav a:hover { text-decoration: underline; }

.sidebar {
  position: fixed;
  top: 64px; bottom: 56px; left: 0;
  width: 240px;
  background: #0f1319;
  border-right: 1px solid #222a35;
  overflow: auto;
}
.sidebar-inner { padding: 16px; }
.sidebar h3 { margin: 0 0 12px; font-size: 14px; opacity: 0.9; }
.sidebar a {
  display: block; padding: 10px 10px; margin-bottom: 8px;
  background: #131a23;
  border: 1px solid #222a35;
  border-radius: 10px;
  color: #e7eef7; text-decoration: none; font-size: 14px;
}
.sidebar a:hover { filter: brightness(1.1); }

.content {
  margin-top: 64px;
  margin-left: 240px;
  margin-bottom: 56px;
  padding: 18px;
  max-width: 980px;
}

.footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 56px;
  background: #11151b;
  border-top: 1px solid #222a35;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; height: 56px;
  display: flex; align-items: center;
  padding: 0 16px;
  color: #9db4d9;
  font-size: 13px;
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}


.card {
  background: #0f1319;
  border: 1px solid #222a35;
  border-radius: 14px;
  padding: 16px;
}

label { display: block; margin: 10px 0 6px; font-size: 14px; color: #cfe1ff; }
input, select, textarea {
  width: 100%;
  background: #0b0d10;
  color: #e7eef7;
  border: 1px solid #222a35;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 880px) {
  .sidebar { width: 210px; }
  .content { margin-left: 210px; }
}
@media (max-width: 720px) {
  .header { height: auto; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 16px; height: auto; gap: 8px; }
  .sidebar { display: none; }
  .content { margin-left: 0; }
  .grid { grid-template-columns: 1fr; }
}

.btnrow { display: flex; gap: 10px; margin-top: 14px; }
button {
  background: #1f6feb;
  border: 1px solid #2b7cff;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: transparent;
  border: 1px solid #2b7cff;
  color: #cfe1ff;
}

.flash {
  position: fixed;
  right: 14px;
  top: 74px;
  z-index: 20;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #222a35;
  background: #131a23;
}
.flash-success { border-color: #2d7a46; }
.flash-error { border-color: #a23b3b; }
.small { font-size: 13px; color: #9db4d9; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #222a35;
  vertical-align: top;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #222a35;
  font-size: 12px;
  color: #cfe1ff;
}
