:root {
  --bg: #0b1220;
  --card: #121a2b;
  --muted: #93a0b1;
  --accent: #2d7ef7;
  --border: #e5e7eb;
  --radius: 12px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: #f6f8fb;
  color: #222;
  line-height: 1.5;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand {
  font-weight: 600;
  font-size: 18px;
}

.topbar nav a {
  margin-left: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

.topbar nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Layout Containers */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

/* Grid */
.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Form */
label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

/* Buttons */
button,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

button:hover,
.btn:hover {
  background: #1f6ee5;
}

.btn.secondary {
  background: #eee;
  color: #111;
}

.btn.secondary:hover {
  background: #ddd;
}

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

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

/* Badge */
.badge {
  padding: 2px 8px;
  border-radius: 9999px;
  background: #eef2ff;
  font-size: 12px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
  font-size: 14px;
}

.tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Inline Edit */
.inline-edit {
  position: relative;
  padding-right: 28px;
}

.inline-actions {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
}

.inline-edit:hover .inline-actions {
  display: inline-flex;
  gap: 6px;
}

/* Avatar */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6eefc;
  color: #2d7ef7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  position: relative;
}

.avatar input {
  display: none;
}

.avatar .upload {
  position: absolute;
  right: -6px;
  bottom: -6px;
  background: #fff;
  border: 1px solid #dbe3f5;
  border-radius: 9999px;
  padding: 6px;
  cursor: pointer;
}

/* Footer */
.footer {
  padding: 24px;
  text-align: center;
  color: #666;
}

/* Notice */
.notice {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

