:root {
  --bg: #0e1018;
  --panel: #161b2a;
  --panel-alt: #1e2740;
  --accent: #ffb347;
  --text: #f3f4f6;
  --muted: #a1a7b5;
  --radius: 18px;
  --font: "Rubik", "Segoe UI", "Tahoma", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #1d2546, #0e1018 55%);
  color: var(--text);
  min-height: 100vh;
}

.admin {
  padding: 32px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.panel {
  background: linear-gradient(160deg, var(--panel), var(--panel-alt));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(10, 14, 30, 0.55);
}

.panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-btn {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--accent);
  color: #1d1f2b;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}
.scroll-panel {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pod-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

input,
textarea,
select {
  background: #0f1424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.primary,
.ghost {
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: #1d1f2b;
}

.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.panel-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.logo-preview {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  overflow: hidden;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.students-editor {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.pod-links {
  display: grid;
  gap: 14px;
}

.pod-link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.pod-link-info {
  display: grid;
  gap: 8px;
}

.pod-link-info .link {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.pod-link-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pod-qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.student-row {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.student-row .row-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.student-photo-preview {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.student-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #1d1f2b;
}

@media (max-width: 720px) {
  .admin {
    padding: 24px;
  }
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
