/* ════════════════════════════════════════════════════════════════
   06-pages.css — Page-specific styles (products, reports, etc)
   ════════════════════════════════════════════════════════════════ */

/* ============ Tabs ============ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ============ Products Grid ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, border-color 0.18s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}
.product-image-wrap {
  aspect-ratio: 1;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
}
.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-sku {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-family: monospace;
}
.product-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  min-height: 38px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.meta-pill {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.product-price { font-size: 17px; font-weight: 900; color: var(--primary); }
.product-price .cur { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.product-actions { display: flex; gap: 4px; }
.icon-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.15s;
}
.icon-action:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.icon-action.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

/* ============ Reports ============ */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.report-card-title { font-size: 14px; font-weight: 800; color: var(--text); }

.bar-row { margin-bottom: 12px; }
.bar-row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.bar-row-label { font-size: 12px; font-weight: 700; color: var(--text); }
.bar-row-value { font-size: 12px; font-weight: 800; color: var(--text); }
.bar-track {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 0.8s var(--ease-out);
}

/* ============ Users Grid ============ */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}
.user-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.user-card-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-size: 14px; font-weight: 800; color: var(--text); }
.user-card-username { font-size: 11px; color: var(--text-muted); margin-top: 1px; font-family: monospace; }
.role-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 5px;
}
.role-pill.admin { background: var(--accent-100); color: var(--accent-dark); }
.role-pill.manager { background: var(--primary-100); color: var(--primary-dark); }
.role-pill.staff { background: var(--success-bg); color: var(--success); }
.role-pill.viewer { background: var(--gray-100); color: var(--gray-700); }

/* ============ Activity Log ============ */
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}
.activity-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
