: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;
}


/* Simple modal */
.modal{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;padding:24px;z-index:1000}
.modal .modal-content{background:#fff;border-radius:12px;padding:16px;max-width:800px;width:90vw;max-height:90vh;overflow:auto;position:relative;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.modal .close{position:absolute;right:12px;top:8px;cursor:pointer;font-size:20px}
.card .muted{opacity:.7;font-size:.9em}
.big{font-size:32px;font-weight:700}


/* --- Tabbed Interface Styles (Custom Rebuild) --- */
.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1rem;
}
.tabs button {
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}
.tabs button.active {
  color: #000;
  border-bottom: 3px solid #007bff;
}
.tab-content {
  padding: 1rem;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }



/* --- Tabs Polish (Form-like look) --- */
.tabs { display:flex; gap:2px; border-bottom:1px solid #e6e6e6; background:#f9fafb; padding:4px 8px; border-radius:12px 12px 0 0; }
.tabs button { border-radius:8px 8px 0 0; padding:10px 14px; font-weight:600; }
.tabs button:hover { background:#eef2ff; }
.tabs button.active { background:#fff; border:1px solid #e6e6e6; border-bottom-color:#fff; }
.card { background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:16px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.table th, .table td { vertical-align: top; }
.preview-thumb { width:36px; height:36px; object-fit:cover; border-radius:6px; border:1px solid #e6e6e6; margin-right:8px; }

