﻿:root {
  --admin-bg: #f0f2f5;
  --admin-surface: #ffffff;
  --admin-ink: #1d2327;
  --admin-muted: #5b6772;
  --admin-line: #dcdcde;
  --admin-brand: #2271b1;
  --admin-sidebar: #1d2327;
  --admin-sidebar-2: #2c3338;
}

body.admin-theme-enabled {
  margin: 0 !important;
  min-height: 100vh;
  padding-top: 0 !important;
  background: var(--admin-bg) !important;
  color: var(--admin-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body.admin-theme-enabled > .admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

body.admin-theme-enabled .sidebar {
  background: var(--admin-sidebar);
  color: #c3c4c7;
  border-right: 1px solid #15191c;
  padding: 14px 0;
}

body.admin-theme-enabled .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 16px;
  border-bottom: 1px solid #2c3338;
  margin-bottom: 12px;
}

body.admin-theme-enabled .sidebar-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2271b1 0%, #3c8dc8 100%);
}

body.admin-theme-enabled .sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

body.admin-theme-enabled .sidebar-brand small {
  color: #9ea7af;
  font-size: 12px;
}

body.admin-theme-enabled .menu {
  display: grid;
  gap: 2px;
}

body.admin-theme-enabled .menu-title {
  margin: 10px 14px 4px;
  color: #7a8a99;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

body.admin-theme-enabled .menu a {
  color: #c3c4c7;
  text-decoration: none;
  padding: 9px 14px;
  border-left: 3px solid transparent;
  font-size: 13px;
}

body.admin-theme-enabled .menu a:hover {
  background: var(--admin-sidebar-2);
  color: #fff;
}

body.admin-theme-enabled .menu a[aria-current="page"] {
  background: #2271b11f;
  border-left-color: #72aee6;
  color: #fff;
}

body.admin-theme-enabled .main {
  padding: 16px;
  display: grid;
  gap: 12px;
}

body.admin-theme-enabled .admin-topbar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

body.admin-theme-enabled .admin-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

body.admin-theme-enabled .admin-subtitle {
  margin: 4px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
}

body.admin-theme-enabled .legacy-host {
  display: grid;
  gap: 12px;
}

body.admin-theme-enabled .legacy-host,
body.admin-theme-enabled .legacy-host * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

body.admin-theme-enabled .legacy-host > main,
body.admin-theme-enabled .legacy-host > section,
body.admin-theme-enabled .legacy-host > article,
body.admin-theme-enabled .legacy-host > div {
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
  border-radius: 8px;
}

body.admin-theme-enabled .legacy-host > main {
  margin: 0 !important;
  max-width: none !important;
  padding: 14px !important;
}

body.admin-theme-enabled .legacy-host .panel,
body.admin-theme-enabled .legacy-host .section,
body.admin-theme-enabled .legacy-host .card {
  background: var(--admin-surface) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.admin-theme-enabled .legacy-host h1,
body.admin-theme-enabled .legacy-host h2,
body.admin-theme-enabled .legacy-host h3 {
  color: #1d2327 !important;
  letter-spacing: 0 !important;
}

body.admin-theme-enabled .legacy-host p,
body.admin-theme-enabled .legacy-host small,
body.admin-theme-enabled .legacy-host .subtitle,
body.admin-theme-enabled .legacy-host .muted {
  color: #5b6772 !important;
}

body.admin-theme-enabled .legacy-host input,
body.admin-theme-enabled .legacy-host select,
body.admin-theme-enabled .legacy-host textarea {
  border: 1px solid #8c8f94 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #1d2327 !important;
  box-shadow: none !important;
}

body.admin-theme-enabled .legacy-host label {
  color: #3c434a !important;
  font-weight: 600 !important;
}

body.admin-theme-enabled .legacy-host .btn,
body.admin-theme-enabled .legacy-host button.btn,
body.admin-theme-enabled .legacy-host button[type="submit"] {
  background: #2271b1 !important;
  border: 1px solid #2271b1 !important;
  color: #fff !important;
  border-radius: 6px !important;
}

body.admin-theme-enabled .legacy-host .btn:hover,
body.admin-theme-enabled .legacy-host button.btn:hover,
body.admin-theme-enabled .legacy-host button[type="submit"]:hover {
  background: #135e96 !important;
  border-color: #135e96 !important;
}

body.admin-theme-enabled .legacy-host .btn-danger,
body.admin-theme-enabled .legacy-host button.btn-danger {
  background: #fff !important;
  border-color: #d63638 !important;
  color: #d63638 !important;
}

body.admin-theme-enabled .legacy-host .btn-danger:hover,
body.admin-theme-enabled .legacy-host button.btn-danger:hover {
  background: #fef0f1 !important;
  color: #b32d2e !important;
  border-color: #b32d2e !important;
}

body.admin-theme-enabled .legacy-host table {
  border-collapse: collapse !important;
}

body.admin-theme-enabled .legacy-host th {
  background: #f6f7f7 !important;
  color: #50575e !important;
  border-bottom: 1px solid #dcdcde !important;
}

body.admin-theme-enabled .legacy-host td {
  border-bottom: 1px solid #f0f0f1 !important;
  color: #1d2327 !important;
}

body.admin-theme-enabled .legacy-host .topbar,
body.admin-theme-enabled .legacy-host .topbar-inner,
body.admin-theme-enabled .legacy-host .brand,
body.admin-theme-enabled .legacy-host .nav {
  display: none !important;
}

body.admin-theme-enabled .legacy-host > .topbar,
body.admin-theme-enabled > .topbar {
  display: none !important;
}

body.admin-theme-enabled .legacy-host .topbar {
  display: none !important;
}

body.admin-theme-enabled .legacy-host .topbar + main {
  margin-top: 0 !important;
}

@media (max-width: 1080px) {
  body.admin-theme-enabled > .admin-shell {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 760px) {
  body.admin-theme-enabled > .admin-shell {
    grid-template-columns: 1fr;
  }

  body.admin-theme-enabled .sidebar {
    border-right: 0;
    border-bottom: 1px solid #15191c;
  }

  body.admin-theme-enabled .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
