body {
  background: radial-gradient(circle at top left, #eef0f5, #f6f7f9 55%, #f1f2f5);
}

.admin-layout .content {
  padding: 32px 36px 48px;
}

.admin-sidebar {
  background: linear-gradient(160deg, #0b1220, #111827 55%, #0b1220);
  color: #e9edf5;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar .sidebar-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 18px;
}

.admin-sidebar .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, #fb923c, #f97316);
  color: #0b1220;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.admin-sidebar .brand-title {
  font-weight: 600;
  font-size: 15px;
}

.admin-sidebar .brand-sub {
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-menu .menu-label {
  margin-top: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.55);
}

.admin-menu a {
  text-decoration: none;
  color: #d0dae6;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.admin-menu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(249, 115, 22, 0.14);
  color: #fff;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.admin-menu a:hover::before,
.admin-menu a.active::before {
  background: #f97316;
}

.admin-menu a.active::after {
  background: #f97316;
}

.admin-menu a:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}

.admin-menu .logout-link {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

.admin-menu .logout-link:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}

.admin-menu a:last-child::before {
  background: rgba(255, 255, 255, 0.5);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 24, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .admin-layout .content {
    padding: 24px 20px 36px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 20;
    transition: left 0.25s ease;
  }

  .admin-sidebar .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.sidebar-open .admin-sidebar {
    left: 0;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .admin-layout .content {
    padding: 20px 16px 32px;
  }

  .admin-layout .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-layout .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-layout .topbar .page-title {
    font-size: 22px;
  }
}

.panel .form-grid {
  margin-top: 6px;
}

.panel .timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel .timeline li {
  padding-left: 16px;
  margin-bottom: 10px;
  position: relative;
  color: var(--muted);
}

.panel .timeline li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 6px;
}

.admin-layout .topbar {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.admin-layout .topbar .page-title {
  font-size: 24px;
}

.admin-layout .topbar-actions .ghost-btn {
  background: #fff;
}

.image-preview {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: #f5f6f9;
  display: grid;
  place-items: center;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 18, 24, 0.75);
  color: #fff;
  cursor: pointer;
}


.attributes-page .grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.attributes-page .attributes-define-row {
  grid-template-columns: 1fr;
}

.attributes-page .panel {
  border: 1px solid rgba(15, 18, 24, 0.05);
}

.attributes-page .panel-header {
  gap: 14px;
}

.attributes-page .table-toolbar {
  align-items: center;
  flex-wrap: wrap;
}

.attributes-page .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attributes-page .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-toolbar .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attributes-page .inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
}

.attributes-page .inline-field input {
  border: none;
  outline: none;
  font-size: 13px;
  width: 190px;
  background: transparent;
}

.attributes-page .summary-pill {
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.attributes-page .data-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.attributes-page .data-table tr:hover {
  background: #fff6ee;
}

.attributes-page .panel-body {
  padding-top: 4px;
}

@media (max-width: 960px) {
  .attributes-page .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .attributes-page .inline-field {
    flex: 1;
  }
  .attributes-page .inline-field input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .attributes-page .grid-2 {
    grid-template-columns: 1fr;
  }

  .attributes-page .panel {
    padding: 18px;
  }

  .attributes-page .panel-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .attributes-page .panel-header .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .attributes-page .table-toolbar .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .attributes-page .summary-pill {
    width: 100%;
    text-align: center;
  }

  .attributes-page .file-drop {
    padding: 12px;
  }

  .attributes-page .form-grid {
    grid-template-columns: 1fr;
  }

  .attributes-page .data-table {
    min-width: 560px;
  }
}

@media (max-width: 560px) {
  .attributes-page .data-table {
    min-width: 520px;
  }

  .attributes-page #optionValuesTable {
    font-size: 12px;
  }

  .attributes-page .option-table-wrap {
    max-height: 220px;
  }
}



.attributes-page .modal-card {
  width: min(520px, 100%);
}

.attributes-page .modal-card .remove-btn {
  padding: 10px 16px;
}

.attributes-page .modal-body p {
  line-height: 1.5;
}

.admin-dashboard-page .dashboard-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-dashboard-page .hero-left {
  background: linear-gradient(140deg, #0b1220, #1f2937 55%, #0b1220);
  color: #f8fafc;
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.admin-dashboard-page .hero-left h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  margin: 10px 0 8px;
}

.admin-dashboard-page .hero-left .muted {
  color: rgba(248, 250, 252, 0.7);
}

.admin-dashboard-page .hero-left::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45), transparent 70%);
  opacity: 0.6;
}

.admin-dashboard-page .hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.admin-dashboard-page .hero-right {
  display: grid;
  gap: 16px;
}

.admin-dashboard-page .hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.admin-dashboard-page .hero-card.accent {
  background: linear-gradient(135deg, #fff4ec, #ffffff 60%);
}

.admin-dashboard-page .hero-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-dashboard-page .hero-time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  margin: 8px 0 4px;
}

.admin-dashboard-page .hero-sub {
  font-size: 12px;
  color: var(--muted);
}

.admin-dashboard-page .dashboard-stats .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 24, 0.05);
}

.admin-dashboard-page .dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-dashboard-page .dashboard-stats .stat-card {
  padding: 16px 18px;
}

.admin-dashboard-page .dashboard-stats .stat-value {
  font-size: 24px;
}

.admin-dashboard-page .dashboard-stats .stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(232, 106, 51, 0.2), transparent 70%);
  opacity: 0.7;
}

.admin-dashboard-page .stat-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.admin-dashboard-page .panel .data-table {
  min-width: 680px;
}

.admin-settings .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-settings .form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .admin-settings .form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-layout .modal-actions .remove-btn {
  padding: 10px 16px;
  border-radius: 10px;
}

.admin-layout .modal-actions .ghost-btn {
  padding: 10px 16px;
  border-radius: 10px;
}

.admin-layout .data-table .ghost-btn,
.admin-layout .data-table .remove-btn {
  padding: 8px 14px;
  border-radius: 10px;
  min-width: 92px;
  text-align: center;
}

.admin-layout .data-table .remove-btn {
  background: #fff;
  color: #b23a1b;
  border: 1px solid rgba(178, 58, 27, 0.35);
  box-shadow: none;
}

@media (max-width: 1024px) {
  .admin-dashboard-page .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-page .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-dashboard-page .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-dashboard-page .dashboard-stats {
    grid-template-columns: 1fr;
  }
}


.attributes-page .subtle-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}

.attributes-page .option-table-wrap {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  max-height: 260px;
  overflow-y: auto;
}

.attributes-page #optionValuesTable {
  font-size: 13px;
}

.attributes-page #optionValuesTable thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.attributes-page #optionValuesTable tbody tr:nth-child(2n) {
  background: #fafafa;
}

.attributes-page #optionValuesTable td {
  padding: 10px 8px;
}

.attributes-page #optionValuesTable .remove-btn {
  padding: 8px 12px;
}
