.admin-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0a0a0a;
  background: var(--black, #0a0a0a);
}

:root {
  --black: #0a0a0a;
  --red: #c41e2a;
  --red-glow: #e8242f;
  --white: #f5f5f5;
  --grey: #8a8a8a;
  --grey-dark: #2a2a2a;
}

body.admin-page {
  margin: 0;
  font-family: "Rajdhani", system-ui, sans-serif;
  color: #f5f5f5;
  color: var(--white, #f5f5f5);
}

body.admin-sidebar-open {
  overflow: hidden;
}

/* Login */

.admin-login-page {
  background-color: #0a0a0a;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 30, 42, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 30, 42, 0.08) 0%, transparent 50%),
    #0a0a0a;
}

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
}

.admin-login__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 24rem;
  gap: 2rem;
}

.admin-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-login__logo {
  width: clamp(6rem, 22vw, 8.75rem);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(232, 36, 47, 0.4));
}

.admin-login__eyebrow {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8a8a;
  color: var(--grey, #8a8a8a);
}

.admin-login__heading {
  margin-top: 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5f5f5;
  color: var(--white, #f5f5f5);
  text-shadow:
    0 0 20px rgba(196, 30, 42, 0.45),
    0 0 48px rgba(196, 30, 42, 0.2);
}

.admin-login__card {
  width: 100%;
  padding: 2rem 1.75rem;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #c41e2a;
  border-top: 2px solid var(--red, #c41e2a);
  border-radius: 8px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(196, 30, 42, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-login__back {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.admin-login__back:hover {
  color: var(--white);
}

/* Forms */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.admin-form__hint {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.admin-color-field {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-color-field input[type="color"] {
  width: 3.5rem;
  height: 2.5rem;
  padding: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.admin-color-field__value {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
}

.admin-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-color-preset {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.admin-color-preset span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.admin-team-item {
  --card-accent: var(--red, #c41e2a);
  border-left: 3px solid var(--card-accent);
}

.admin-team-item__swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-form__group input {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #f5f5f5;
  color: var(--white, #f5f5f5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-form__group input:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-form__group input::placeholder {
  color: rgba(138, 138, 138, 0.7);
}

.admin-form__group input:focus {
  outline: none;
  border-color: #c41e2a;
  border-color: var(--red, #c41e2a);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.25);
}

.admin-form__group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-form__group select {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white, #f5f5f5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-form__group select:focus {
  outline: none;
  border-color: var(--red, #c41e2a);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.25);
}

.admin-form__group textarea {
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white, #f5f5f5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  resize: vertical;
  min-height: 6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-form__group textarea:focus {
  outline: none;
  border-color: var(--red, #c41e2a);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.25);
}

.admin-form__row--hidden {
  display: none;
}

.admin-partner-preview {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  aspect-ratio: 16 / 6;
}

.admin-partner-item__banner {
  width: 7.5rem;
  height: 2.8rem;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.admin-partner-item__banner--empty {
  background: rgba(255, 255, 255, 0.05);
}

.admin-partner-item {
  align-items: center;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f5f5f5;
  color: var(--white, #f5f5f5);
  background: #c41e2a;
  background: var(--red, #c41e2a);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-button:hover {
  background: #e8242f;
  background: var(--red-glow, #e8242f);
}

.admin-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-button--login {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  box-shadow:
    0 0 20px rgba(196, 30, 42, 0.4),
    0 0 40px rgba(196, 30, 42, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-button--login:hover:not(:disabled) {
  box-shadow:
    0 0 28px rgba(232, 36, 47, 0.55),
    0 0 56px rgba(232, 36, 47, 0.25);
  transform: translateY(-1px);
}

.admin-alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  border-radius: 4px;
}

.admin-alert--error {
  color: #ffb4b4;
  background: rgba(196, 30, 42, 0.15);
  border: 1px solid rgba(196, 30, 42, 0.35);
}

.admin-alert__detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Panel layout */

.admin-panel-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100vh;
  height: 100dvh;
  background: rgba(14, 14, 14, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.admin-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-sidebar__close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.admin-sidebar__nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.admin-sidebar__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.admin-sidebar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar__link--active {
  color: var(--white);
  background: rgba(196, 30, 42, 0.15);
  border-left: 3px solid var(--red);
}

.admin-sidebar__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.admin-sidebar__footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar__footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red-glow);
}

.admin-sidebar__footer-link--muted {
  color: var(--grey);
}

.admin-sidebar__footer-link:hover {
  color: var(--white);
}

.admin-sidebar__backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.6);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-topbar__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
}

.admin-topbar__menu span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.admin-topbar__title {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-topbar__user {
  font-size: 0.9rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

.admin-content {
  flex: 1;
  padding: 1.75rem 1.5rem 2.5rem;
}

/* Statistics */

.stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stats-filter {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.stats-filter:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
}

.stats-filter--active {
  color: var(--white);
  background: rgba(196, 30, 42, 0.2);
  border-color: var(--red);
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.stats-card--accent {
  border-color: rgba(196, 30, 42, 0.35);
  background: rgba(196, 30, 42, 0.08);
}

.stats-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.stats-card__value {
  display: block;
  margin-top: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.stats-card__hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--grey);
}

.stats-chart-panel {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.stats-chart-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.stats-empty {
  color: var(--grey);
  line-height: 1.6;
}

.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 220px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.stats-chart__col {
  flex: 1;
  min-width: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.stats-chart__bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stats-chart__bar {
  width: 70%;
  max-width: 2.5rem;
  background: linear-gradient(to top, var(--red), var(--red-glow));
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 12px rgba(196, 30, 42, 0.35);
  transition: height 0.4s ease;
}

.stats-chart__label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
}

.stats-chart__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 0.15rem;
}

.admin-placeholder {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.admin-placeholder h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.admin-placeholder p {
  color: var(--grey);
  line-height: 1.6;
}

.admin-alert--success {
  color: #b8f5c3;
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  margin-bottom: 1.25rem;
}

.admin-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.admin-form--team {
  margin-top: 1rem;
}

.admin-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-team-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 30, 42, 0.45);
  margin-bottom: 0.75rem;
}

.admin-team-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-team-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.admin-team-item__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 30, 42, 0.35);
}

.admin-team-item__info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.admin-team-item__info p {
  color: var(--grey);
  font-size: 0.9rem;
}

.admin-team-item__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-team-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.admin-team-item__actions form {
  margin: 0;
}

.admin-link--danger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: #ff8f8f;
}

.admin-link--danger:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar--open {
    transform: translateX(0);
  }

  .admin-sidebar__close {
    display: block;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar__menu {
    display: flex;
  }
}
