/* ============================================
   LAKSHERA ADMIN — DASHBOARD HOME
   ============================================ */

/* ---------- Stat cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stat-icon-round {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.stat-icon-round.aubergine { background: rgba(43,0,59,0.08); color: var(--aubergine); }
.stat-icon-round.gold { background: rgba(201,151,74,0.14); color: var(--gold-dark); }
.stat-icon-round.success { background: var(--success-bg); color: var(--success); }
.stat-icon-round.danger { background: var(--danger-bg); color: var(--danger); }

.stat-card .stat-trend {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-trend.up { background: var(--success-bg); color: var(--success); }
.stat-trend.down { background: var(--danger-bg); color: var(--danger); }
.stat-trend.flat { background: var(--pending-bg); color: var(--pending); }

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--aubergine);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 7px;
  font-weight: 500;
}

/* ---------- Content grid ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.panel-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--aubergine);
  font-weight: 600;
}
.panel-header h3 .panel-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
}
.panel-header .view-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}
.panel-header .view-all:hover { text-decoration: underline; }
.panel-body { padding: 8px 22px 18px; }

/* ---------- Top selling products ---------- */
.top-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--border);
}
.top-product-row:first-child { border-top: none; }
.tp-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--aubergine-pale); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.tp-main { flex: 1; min-width: 0; }
.tp-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-bar-track {
  height: 6px; border-radius: 4px; background: var(--aubergine-pale); overflow: hidden;
}
.tp-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}
.tp-figures {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
}
.tp-figures b { font-size: 13.5px; color: var(--aubergine); font-weight: 700; }
.tp-figures span { font-size: 10.5px; color: var(--ink-soft); margin-bottom: 2px; }
.tp-figures .tp-rev { font-size: 11.5px; color: var(--gold-dark); font-weight: 600; }

/* ---------- Recent bills list ---------- */
.recent-bills-list { padding: 6px 10px 14px; }
.recent-bill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.recent-bill-row:hover { background: var(--aubergine-pale); }
.rb-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: var(--success-bg); color: var(--success);
}
.rb-icon.pending { background: var(--pending-bg); color: var(--pending); }
.rb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rb-main b { font-size: 13px; color: var(--aubergine); }
.rb-main span { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-date { font-size: 11.5px; color: var(--ink-soft); flex-shrink: 0; }
.rb-amount { font-size: 13px; font-weight: 700; color: var(--ink); flex-shrink: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.status-pill.paid { background: var(--success-bg); color: var(--success); }
.status-pill.pending { background: var(--pending-bg); color: var(--pending); }
.status-pill.inactive { background: var(--danger-bg); color: var(--danger); }

/* ---------- Orders status strip ---------- */
.orders-status-panel { margin-bottom: 0; }
.orders-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 18px 22px 22px;
  gap: 10px;
}
.order-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}
.os-count { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--aubergine); line-height: 1; }
.os-label { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; }

.empty-note { padding: 30px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }
.empty-note i { font-size: 24px; color: var(--gold-light); display: block; margin-bottom: 10px; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .orders-status-strip { grid-template-columns: repeat(2, 1fr); }
  .rb-date { display: none; }
}