/* Basic layout */
body.admin-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f0f0f0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */

.admin-sidebar {
  background: #070707;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.admin-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #15fb00;
}

.admin-current-role {
  font-size: 0.9rem;
  color: #ccc;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: #eee;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.admin-nav-item:hover {
  background: #111;
  border-color: #15fb00;
}

.admin-nav-item.active {
  background: #15fb00;
  color: #000;
  border-color: #15fb00;
}

.admin-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-footer button {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  cursor: pointer;
  font-size: 0.9rem;
}

.admin-sidebar-footer button:hover {
  border-color: #15fb00;
}

/* Main content */

.admin-main {
  padding: 16px 20px;
}

/* Top bar */

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-topbar p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #ccc;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  border: 1px solid #555;
}

.pill-admin {
  background: #15fb00;
  color: #000;
}

/* Sections */

.admin-section {
  margin-bottom: 32px;
}

.admin-section.hidden {
  display: none;
}

/* Cards & grid */

.card {
  background: #101010;
  border-radius: 8px;
  border: 1px solid #222;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.card-danger {
  border-color: #ff0044;
  background: #290010;
}

.card h3 {
  margin-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Lists */

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.list-item {
  background: #171717;
  border-radius: 6px;
  border: 1px solid #333;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.list-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* Buttons */

.ghost-btn,
.list-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  font-size: 0.8rem;
  cursor: pointer;
}

.ghost-btn:hover,
.list-btn:hover {
  border-color: #15fb00;
}

/* Inline forms */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.inline-form input,
.inline-form select {
  flex: 1;
  min-width: 160px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

input,
select,
textarea {
  background: #0b0b0b;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 8px;
  color: #f0f0f0;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  resize: vertical;
}

button {
  font-family: inherit;
}

/* Tabs */

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.tab-btn {
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid #333;
  background: #111;
  color: #eee;
  font-size: 0.85rem;
  cursor: pointer;
}

.tab-btn.active {
  background: #15fb00;
  color: #000;
  border-color: #15fb00;
}

.tab-content.hidden {
  display: none;
}

/* Small note text */

.small-note {
  font-size: 0.8rem;
  color: #aaa;
}

/* Responsive */

@media (max-width: 800px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-sidebar-footer {
    flex-direction: row;
  }
}
