:root {
  --primary: #ff6b00;
  --ink: #000000;
  --cloud: #ffffff;
  --muted: #bdbdbd;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(255, 107, 0, 0.10), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(189, 189, 189, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 40%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  background-position: 0 0, 0 0, center, center, center;
}

.nav-link {
  color: #475569;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--ink);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b00, #000000);
  color: #ffffff;
  padding: 0.62rem 1.15rem;
  border-radius: 0.9em;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--muted);
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #ffffff;
  font-weight: 600;
}

.btn-danger {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #ffffff;
  font-weight: 600;
}

.input-field {
  border: 1px solid var(--muted);
  border-radius: 0.9rem;
  padding: 0.72rem 0.9rem;
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--ink);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 1.4rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff3eb;
  color: var(--primary);
  border: 1px solid #ffcfb0;
}

.chart-card {
  position: relative;
  border-radius: 1.4rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #fff7f1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chart-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 0, 0.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(0, 0, 0, 0.08), transparent 45%);
  pointer-events: none;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chart-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

@media (max-width: 640px) {
  .chart-wrap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
    justify-content: center;
  }
  .admin-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .admin-sidebar {
    width: 100%;
    max-width: 100%;
  }
  .admin-content {
    width: 100%;
    max-width: 100%;
  }
  .admin-top {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-top > * {
    width: 100%;
  }
  .admin-table {
    font-size: 0.85rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.5rem;
  }
  .admin-actions {
    flex-wrap: wrap;
  }
  .admin-actions > * {
    width: 100%;
  }
}
