/* ================= VARIABLES ================= */
:root {
  --primary: #FF6701;
  --primary-dark: #E65A00;
  --success: #4CAF50;
  --danger: #f44336;
  --warning: #ff9800;
  --info: #2196F3;
  --dark: #1a1a1a;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --sidebar-width: 260px;
  --header-height: 70px;
} 

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  background: var(--light-gray);
  color: var(--dark);
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 20px;
  color: var(--primary);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--gray);
  transition: all 0.3s;
  position: relative;
}

.nav-link i {
  font-size: 22px;
  min-width: 22px;
}

.nav-link span:not(.badge) {
  flex: 1;
}

.nav-link .badge {
  background: var(--danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.nav-link:hover {
  background: var(--light-gray);
  color: var(--primary);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 103, 1, 0.1) 0%, transparent 100%);
  color: var(--primary);
  border-right: 3px solid var(--primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.logout-btn i {
  font-size: 20px;
}

/* ================= MAIN CONTENT ================= */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 20px;
}

/* Top Header */
.top-header {
  background: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.top-header h1 {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* ================= CONTENT SECTIONS ================= */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  min-width: 250px;
}

.search-input:focus {
  border-color: var(--primary);
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  background: #fff;
}

/* ================= STATS GRID ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
}

.stat-info h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--dark);
}

.stat-info p {
  font-size: 14px;
  color: var(--gray);
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--light-gray);
  position: relative;
}

.product-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: var(--warning);
  color: #fff;
}

.status-approved {
  background: var(--success);
  color: #fff;
}

.status-rejected {
  background: var(--danger);
  color: #fff;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-meta {
  font-size: 13px;
  color: var(--gray);
  margin: 4px 0;
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 8px;
  background: var(--light-gray);
  border-radius: 8px;
}

.seller-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.seller-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.product-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

/* ================= BUTTONS ================= */
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: #fff;
  flex: 1;
}

.btn-success:hover {
  background: #45a049;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  flex: 1;
}

.btn-danger:hover {
  background: #d32f2f;
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--dark);
  flex: 1;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn i {
  font-size: 16px;
}

/* ================= USERS LIST ================= */
.users-list {
  display: grid;
  gap: 16px;
}

.user-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.user-info {
  flex: 1;
}

.user-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-badge {
  color: var(--success);
  font-size: 18px;
}

.banned-badge {
  background: var(--danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.user-meta {
  font-size: 13px;
  color: var(--gray);
  margin: 2px 0;
}

.user-actions {
  display: flex;
  gap: 8px;
}

/* ================= VERIFICATION REQUESTS ================= */
.verification-list {
  display: grid;
  gap: 16px;
}

.verification-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.verification-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.verification-info {
  flex: 1;
}

.verification-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.verification-details {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-weight: 600;
  color: var(--dark);
}

.detail-value {
  color: var(--gray);
}

.verification-actions {
  display: flex;
  gap: 12px;
}

/* ================= PREMIUM TOOLS ================= */
.premium-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.tool-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tool-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.premium-list {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.premium-list h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.list-container {
  display: grid;
  gap: 12px;
}

/* ================= REPORTS ================= */
.reports-list {
  display: grid;
  gap: 16px;
}

.report-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.report-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--danger);
  color: #fff;
}

.report-content {
  margin-bottom: 16px;
}

.report-content h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.report-content p {
  color: var(--gray);
  line-height: 1.6;
}

.report-actions {
  display: flex;
  gap: 12px;
}

/* ================= RECENT ACTIVITY ================= */
.recent-activity {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recent-activity h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--light-gray);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.activity-info {
  flex: 1;
}

.activity-info p {
  font-size: 14px;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 12px;
  color: var(--gray);
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 32px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .premium-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 12px;
  }

  .top-header {
    padding: 12px 16px;
  }

  .top-header h1 {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9rem;
    color: #4b5563;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}

.footer a {
    color: #FF6701;
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #E65A00;
    text-decoration: underline;
}

/* Ensure footer is pushed below content */
body, html {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main, .profile-container, .admin-container {
    flex: 1 0 auto; /* fill remaining space so footer goes to bottom */
}

.footer {
    flex-shrink: 0; /* don’t shrink footer */
}

.seller-phone {
  font-size: 15px;
  color: #999;
  margin-top: 4px;
  font-weight: 600;
}