/* =============================================
   Seller Panel — Stylesheet (matches Admin Panel design)
   ============================================= */

*, body { font-family: 'Inter', sans-serif; }

:root {
  --sidebar-w:    250px;
  --primary:      #0f7d92;
  --primary-dark: #0c6478;
  --accent:       #ef5a4d;
  --seller-light: #e8f6f9;
}

/* ── Base ─────────────────────────────────── */
body { background: #f4f6fb; color: #374151; }

/* ── Sidebar ──────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: #1a1a2e;
  overflow-y: auto; z-index: 1040;
  transition: transform .3s;
}
.sidebar-brand { padding: 22px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .logo-text {
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #5db8c8, #ef5a4d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sidebar-brand .logo-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }

.sidebar-nav { padding: 12px 0; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  padding: 16px 20px 6px;
}
.sidebar a.nav-link {
  color: rgba(255,255,255,.65); font-size: 13.5px; font-weight: 500;
  padding: 10px 20px; display: flex; align-items: center; gap: 10px;
  border-radius: 0; transition: background .15s, color .15s;
  text-decoration: none;
}
.sidebar a.nav-link i { font-size: 16px; width: 20px; flex-shrink: 0; }
.sidebar a.nav-link:hover,
.sidebar a.nav-link.active { background: rgba(255,255,255,.09); color: #fff; }
.sidebar a.nav-link.active { border-right: 3px solid var(--accent); }
.sidebar a.nav-link .badge { margin-left: auto; font-size: 10px; }

/* Sidebar bottom: logout + user info */
.sidebar-bottom { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.sidebar-user { padding: 12px 20px; display: flex; align-items: center; gap: 10px; }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name  { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-user-role  { font-size: 11px; color: rgba(255,255,255,.45); }

/* ── Topbar ───────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-w); right: 0;
  height: 60px; background: #fff;
  border-bottom: 1px solid #e5e9f0;
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  z-index: 1030; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.topbar .page-title { font-size: 17px; font-weight: 700; color: #1a1a2e; flex: 1; }
.topbar .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #f4f6fb; display: flex; align-items: center; justify-content: center;
  color: #374151; cursor: pointer; position: relative; transition: background .15s;
}
.topbar-icon-btn:hover { background: #e5e9f0; }
.btn-sidebar-toggle { display: none; background: none; border: none; font-size: 22px; color: #374151; padding: 0; }

.notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; flex-shrink: 0;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-name { font-size: 14px; font-weight: 600; color: #374151; }
.admin-role { font-size: 11px; color: #9ca3af; }

/* ── Main content ─────────────────────────── */
.main-content { margin-left: var(--sidebar-w); padding-top: 60px; min-height: 100vh; }
.content-wrap  { padding: 28px; }

/* ── Cards ────────────────────────────────── */
.card { border: none; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card-header {
  background: #fff; border-bottom: 1px solid #f0f2f8;
  padding: 18px 22px; border-radius: 14px 14px 0 0 !important;
  font-weight: 700; font-size: 15px;
}
/* seller-card aliases */
.seller-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; }
.seller-card-header {
  padding: 18px 22px; border-bottom: 1px solid #f0f2f8;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
}
.seller-card-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0; }
.seller-card-body  { padding: 22px; }

/* ── Stat cards ───────────────────────────── */
.stat-card { border-radius: 14px; padding: 22px; color: #fff; position: relative; overflow: hidden; }
.stat-card::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.stat-card .stat-icon { font-size: 32px; opacity: .9; }
.stat-card .stat-num  { font-size: 32px; font-weight: 800; line-height: 1; margin: 8px 0 2px; }
.stat-card .stat-label { font-size: 13px; opacity: .85; }
.bg-grad-blue   { background: linear-gradient(135deg, #0f7d92, #1a9bb0); }
.bg-grad-pink   { background: linear-gradient(135deg, #ef5a4d, #e84393); }
.bg-grad-green  { background: linear-gradient(135deg, #10b981, #059669); }
.bg-grad-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-grad-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-grad-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }

/* ── Tables ───────────────────────────────── */
.table { font-size: 14px; }
.table thead th {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: #6b7280; background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.table td { vertical-align: middle; }
.table-thumb { width: 52px; height: 42px; object-fit: cover; border-radius: 8px; }
/* seller-table alias */
.seller-table { width: 100%; font-size: 14px; }
.seller-table th {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: #6b7280; background: #f9fafb;
  padding: 12px 16px; border-bottom: 2px solid #e5e7eb;
}
.seller-table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.seller-table tr:last-child td { border-bottom: none; }
.seller-table tr:hover td { background: #fafbfc; }
.table-responsive { border-radius: 14px; overflow: hidden; }

/* ── Forms ────────────────────────────────── */
.form-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: 10px; padding: 10px 14px;
  border: 1.5px solid #e0e7ef; font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,125,146,.15);
}

/* ── Buttons ──────────────────────────────── */
.btn { border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.btn-seller, .btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-seller:hover, .btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: #fff;
}
.btn-sm { font-size: 12px; padding: 5px 10px; }
.btn-xs { padding: 3px 8px; font-size: .78rem; }
.text-seller { color: var(--primary) !important; }

/* ── Breadcrumb ───────────────────────────── */
.seller-breadcrumb { font-size: 13px; color: #9ca3af; margin-bottom: 20px; }
.seller-breadcrumb a { color: var(--primary); text-decoration: none; }
.seller-breadcrumb a:hover { text-decoration: underline; }
.seller-breadcrumb .sep { margin: 0 6px; }

/* ── Image preview ────────────────────────── */
.img-preview {
  width: 120px; height: 80px; object-fit: cover;
  border-radius: 10px; border: 2px dashed #cbd5e1; display: block; margin-bottom: 6px;
}
.img-preview.has-image { border-style: solid; border-color: var(--primary); }
.gallery-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-thumb { position: relative; }
.gallery-thumb img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.gallery-thumb .remove-img {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Notification dropdown ────────────────── */
.notif-dropdown { width: 340px; max-height: 440px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background .15s; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #f0f9fb; border-left: 3px solid var(--primary); }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.notif-title { font-size: .82rem; font-weight: 600; color: #1a1a2e; }
.notif-msg   { font-size: .78rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.notif-time  { font-size: .72rem; color: #9ca3af; }

/* ── Chart ────────────────────────────────── */
.chart-container { position: relative; height: 260px; }

/* ── Empty state ──────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }

/* ── Overlay (mobile sidebar) ─────────────── */
#sidebarOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1025; }
#sidebarOverlay.show { display: block; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .btn-sidebar-toggle { display: block; }
  .content-wrap { padding: 16px; }
}
