@import 'admin.css';

.dashboard-sidebar .sidebar-nav a { font-size: 14px; }

.admin-center.dashboard-main {
  margin-right: 0;
}

.dashboard-topbar .greeting-bar h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f1f1f;
}
.dashboard-topbar .greeting-bar p {
  font-size: 14px;
  color: #8c8c8c;
  margin-top: 2px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.dash-stat {
  border-radius: 8px;
  padding: 20px 22px;
  color: #fff;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dash-stat.blue { background: linear-gradient(135deg, #40a9ff, #1890ff); }
.dash-stat.green { background: linear-gradient(135deg, #73d13d, #52c41a); }
.dash-stat.orange { background: linear-gradient(135deg, #ffc53d, #fa8c16); }
.dash-stat.gray { background: linear-gradient(135deg, #8c8c8c, #595959); }
.dash-stat .num { font-size: 32px; font-weight: 700; line-height: 1.1; }
.dash-stat .lbl { font-size: 13px; opacity: 0.95; margin-top: 6px; }

.products-panel {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 20px 24px;
}
.panel-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f1f1f;
}
.panel-title a { font-size: 14px; color: #1890ff; font-weight: 500; }

.products-list { display: flex; flex-direction: column; gap: 0; }
.product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.product-row:last-child { border-bottom: none; }
.product-row img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}
.product-row .info { flex: 1; min-width: 0; }
.product-row h4 { font-size: 14px; font-weight: 600; color: #1f1f1f; margin-bottom: 2px; }
.product-row .serial { font-size: 12px; color: #8c8c8c; }
.product-row .badge { flex-shrink: 0; }
.product-row .meta {
  text-align: right;
  font-size: 12px;
  color: #8c8c8c;
  flex-shrink: 0;
  min-width: 120px;
}
.product-row .meta strong { color: #1f1f1f; }
.product-row .btn-detail {
  padding: 6px 14px;
  border: 1px solid #1890ff;
  color: #1890ff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  white-space: nowrap;
}
.product-row .btn-detail:hover { background: #e6f4ff; }

.sidebar-qr {
  margin: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.sidebar-qr strong { display: block; color: #fff; margin-bottom: 8px; font-size: 13px; }
.sidebar-qr .qr-box {
  width: 88px;
  height: 88px;
  background: #fff;
  margin: 0 auto 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #595959;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .product-row { flex-wrap: wrap; }
}
