﻿/* ============================================================
   PureGlow Wellness — Admin Panel Stylesheet
   ============================================================ */

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.admin-body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  background: #f5f0ee;
  color: #2d2420;
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
  width: 268px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a3530 0%, #0f2820 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: all 0.3s ease;
  overflow: hidden;
}
.admin-sidebar.collapsed { width: 72px; }

.sidebar-brand {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6C9A8B, #4a7d70);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sidebar-brand .brand-text { overflow: hidden; transition: all 0.3s ease; }
.sidebar-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.1;
}
.sidebar-brand .brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-section-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 1.25rem 1.5rem 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}
.sidebar-link.active {
  color: #ffffff;
  background: rgba(108, 154, 139, 0.3);
  font-weight: 700;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #6C9A8B;
  border-radius: 0 2px 2px 0;
}
.sidebar-link .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-link .nav-badge {
  margin-left: auto;
  background: #E8998D;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sidebar-user {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.sidebar-user .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C9A8B, #4a7d70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-user .user-info { overflow: hidden; }
.sidebar-user .user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* MAIN CONTENT */
.admin-main {
  margin-left: 268px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* TOP BAR */
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e4d0cb;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(45, 36, 32, 0.05);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d2420;
}
.topbar-breadcrumb {
  font-size: 0.8rem;
  color: #8a9e9a;
}
.topbar-breadcrumb span { color: #6C9A8B; }
.topbar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f0ee;
  border: 1px solid #e4d0cb;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  max-width: 280px;
  width: 100%;
}
.topbar-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  color: #2d2420;
  width: 100%;
}
.topbar-search input::placeholder { color: #aab5b0; }
.topbar-search .search-icon { color: #8a9e9a; font-size: 0.9rem; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e4d0cb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #5a6e69;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}
.topbar-btn:hover { background: #f5f0ee; color: #4a7d70; }
.topbar-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #E8998D;
  border-radius: 50%;
  border: 2px solid #fff;
}
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e4d0cb;
  background: #fff;
  transition: all 0.2s ease;
}
.topbar-profile:hover { background: #f5f0ee; }
.topbar-profile .profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C9A8B, #4a7d70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
}
.topbar-profile .profile-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2d2420;
}

/* CONTENT AREA */
.admin-content {
  padding: 2rem;
  flex: 1;
}

/* PAGE HEADER */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d2420;
}
.admin-page-header p { font-size: 0.875rem; color: #8a9e9a; margin-top: 0.2rem; }

/* STAT CARDS */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e4d0cb;
  box-shadow: 0 2px 12px rgba(45, 36, 32, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.2s ease;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(45, 36, 32, 0.10); }
.admin-stat-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.green  { background: #d4eae5; }
.stat-icon.gold   { background: #fde8e4; }
.stat-icon.blue   { background: #dce8f5; }
.stat-icon.pink   { background: #f5e0e2; }
.admin-stat-card .stat-info .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a9e9a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.admin-stat-card .stat-info .stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d2420;
  line-height: 1.1;
}
.admin-stat-card .stat-info .stat-change {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
.stat-change.up   { color: #4a7d70; }
.stat-change.down { color: #c0392b; }
.stat-change span { color: #8a9e9a; }

/* ADMIN CARDS */
.admin-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4d0cb;
  box-shadow: 0 2px 12px rgba(45, 36, 32, 0.05);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.admin-card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f5e6e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d2420;
}
.admin-card-header p { font-size: 0.78rem; color: #8a9e9a; }
.admin-card-body { padding: 1.75rem; }
.admin-card-footer { padding: 1rem 1.75rem; border-top: 1px solid #f5e6e2; background: #faf4f2; }

/* ADMIN GRID LAYOUT */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.admin-grid-2-1 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; }

/* TABLES */
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: #faf4f2;
  border-bottom: 2px solid #e4d0cb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9e9a;
  white-space: nowrap;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #f5e6e2;
  color: #2d2420;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #faf4f2; }
.admin-table tr:last-child td { border-bottom: none; }

/* USER TABLE ROW */
.table-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4eae5, #8bbdb5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4a7d70;
  flex-shrink: 0;
}
.table-name { font-weight: 700; color: #2d2420; }
.table-email { font-size: 0.78rem; color: #8a9e9a; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-success  { background: #d4ead6; color: #2d7a36; }
.badge-warning  { background: #fde8e4; color: #A1683A; }
.badge-danger   { background: #fde0e0; color: #c0392b; }
.badge-info     { background: #dce8f5; color: #1a5f9e; }
.badge-primary  { background: #d4eae5; color: #4a7d70; }
.badge-neutral  { background: #f5e6e2; color: #5a6e69; }

/* ACTION BUTTONS */
.action-btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e4d0cb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: #5a6e69;
  transition: all 0.2s ease;
  text-decoration: none;
}
.action-btn:hover.view   { background: #d4eae5; color: #4a7d70; border-color: #8bbdb5; }
.action-btn:hover.edit   { background: #fde8e4; color: #A1683A; border-color: #f5ccc6; }
.action-btn:hover.delete { background: #fde0e0; color: #c0392b; border-color: #f5bfbf; }

/* SEARCH & FILTER BAR */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #e4d0cb;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.filter-search input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: #2d2420;
  width: 100%;
  font-family: inherit;
}
.filter-search input::placeholder { color: #aab5b0; }
.filter-search .icon { color: #8a9e9a; }
.filter-select {
  padding: 0.6rem 1rem;
  border: 1px solid #e4d0cb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.875rem;
  color: #2d2420;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.admin-btn-primary { background: linear-gradient(135deg, #6C9A8B, #4a7d70); color: #fff; }
.admin-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(108, 154, 139, 0.35); color: #fff; }
.admin-btn-secondary { background: #fff; color: #5a6e69; border: 1px solid #e4d0cb; }
.admin-btn-secondary:hover { background: #f5f0ee; }
.admin-btn-gold { background: linear-gradient(135deg, #E8998D, #A1683A); color: #fff; }
.admin-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232, 153, 141, 0.35); color: #fff; }
.admin-btn-sm { padding: 0.45rem 1rem; font-size: 0.78rem; border-radius: 8px; }
.admin-btn-danger { background: #fde0e0; color: #c0392b; border: 1px solid #f5bfbf; }
.admin-btn-danger:hover { background: #c0392b; color: #fff; }

/* CHART PLACEHOLDER */
.chart-placeholder {
  height: 260px;
  background: linear-gradient(135deg, #f5f0ee 0%, #e8f0ee 100%);
  border-radius: 12px;
  border: 2px dashed #c8d4c8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #8a9e9a;
}
.chart-placeholder .chart-icon { font-size: 2.5rem; opacity: 0.5; }
.chart-placeholder p { font-size: 0.875rem; }
.chart-placeholder.small { height: 160px; }
.chart-placeholder.large { height: 340px; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  opacity: 0.3;
}
.chart-bar {
  width: 14px;
  background: #6C9A8B;
  border-radius: 3px 3px 0 0;
}

/* PRODUCT MINI CARD */
.product-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f5e6e2;
}
.product-mini:last-child { border-bottom: none; }
.product-mini .product-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4eae5, #f5e6e2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.product-mini .product-details { flex: 1; min-width: 0; }
.product-mini .product-name { font-weight: 700; font-size: 0.875rem; color: #2d2420; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-mini .product-cat { font-size: 0.75rem; color: #8a9e9a; }
.product-mini .product-price { font-family: 'Playfair Display', serif; font-weight: 700; color: #4a7d70; font-size: 0.95rem; white-space: nowrap; }

/* PROGRESS BAR */
.progress-wrap { margin: 0.5rem 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: #8a9e9a; margin-bottom: 0.3rem; }
.progress-bar-outer { height: 8px; background: #e4d0cb; border-radius: 999px; overflow: hidden; }
.progress-bar-inner { height: 100%; border-radius: 999px; background: linear-gradient(to right, #6C9A8B, #8bbdb5); }
.progress-bar-inner.gold  { background: linear-gradient(to right, #E8998D, #f5ccc6); }
.progress-bar-inner.blue  { background: linear-gradient(to right, #5b8fd4, #93b8e8); }

/* ACTIVITY ITEM */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f5e6e2;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-dot.green  { background: #4a7d70; }
.activity-dot.gold   { background: #E8998D; }
.activity-dot.blue   { background: #5b8fd4; }
.activity-dot.pink   { background: #d87080; }
.activity-text { flex: 1; }
.activity-text .a-title { font-size: 0.875rem; color: #2d2420; font-weight: 400; }
.activity-text .a-title strong { font-weight: 700; }
.activity-text .a-time { font-size: 0.75rem; color: #aab5b0; margin-top: 0.15rem; }

/* QUICK ACTION BUTTONS */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.quick-action-btn {
  background: #fff;
  border: 1px solid #e4d0cb;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.quick-action-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45, 36, 32, 0.10); border-color: #8bbdb5; }
.quick-action-btn .qa-icon { font-size: 1.5rem; }
.quick-action-btn .qa-label { font-size: 0.78rem; font-weight: 700; color: #5a6e69; }

/* FORM STYLING IN ADMIN */
.admin-form-group { margin-bottom: 1.25rem; }
.admin-form-label { display: block; font-size: 0.82rem; font-weight: 700; color: #5a6e69; margin-bottom: 0.45rem; letter-spacing: 0.02em; }
.admin-form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e4d0cb;
  border-radius: 10px;
  background: #fff;
  color: #2d2420;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.admin-form-control:focus { border-color: #6C9A8B; box-shadow: 0 0 0 3px rgba(108, 154, 139, 0.12); }
.admin-form-control::placeholder { color: #aab5b0; }
textarea.admin-form-control { resize: vertical; min-height: 100px; }
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.toggle-track {
  width: 44px;
  height: 24px;
  background: #e4d0cb;
  border-radius: 999px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.toggle-track.on { background: #6C9A8B; }
.toggle-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: left 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-track.on .toggle-thumb { left: 23px; }
.admin-toggle .toggle-label { font-size: 0.875rem; color: #2d2420; }

/* PAYOUT SUMMARY */
.payout-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.payout-summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e4d0cb;
  box-shadow: 0 2px 10px rgba(45, 36, 32, 0.05);
  text-align: center;
}
.payout-summary-card .ps-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #4a7d70;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.payout-summary-card.gold .ps-amount { color: #A1683A; }
.payout-summary-card.blue .ps-amount { color: #1a5f9e; }
.payout-summary-card .ps-label { font-size: 0.78rem; color: #8a9e9a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.payout-summary-card .ps-sub { font-size: 0.72rem; color: #aab5b0; margin-top: 0.25rem; }

/* HAMBURGER FOR MOBILE */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #2d2420;
  font-size: 1.2rem;
}

/* OVERLAY */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   SHARED FORM COMPONENTS (used in admin pages inline)
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a6e69;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e4d0cb;
  border-radius: 10px;
  background: #fff;
  color: #2d2420;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { border-color: #6C9A8B; box-shadow: 0 0 0 3px rgba(108, 154, 139, 0.12); }
.form-control::placeholder { color: #aab5b0; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { font-size: 0.75rem; color: #c0392b; display: block; margin-top: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* CSS VARIABLE ALIAS for settings pages */
:root {
  --admin-primary: #6C9A8B;
  --admin-primary-light: #8bbdb5;
  --admin-primary-dark: #4a7d70;
  --admin-primary-pale: #e8f4f1;
  --admin-surface: #faf4f2;
  --admin-border: #e4d0cb;
}

/* MINI STAT VARIANT */
.admin-stats-grid.mini .admin-stat-card { padding: 1.25rem; }
.admin-stat-card.mini { padding: 1.25rem; }
.admin-stat-card.mini .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
.admin-stat-card.mini .stat-value { font-size: 1.4rem; }

/* USER AVATAR MINI */
.user-avatar.mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C9A8B, #4a7d70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* TABLE FOOTER & PAGINATION */
.admin-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-top: 1px solid #f5e6e2;
  font-size: 0.82rem;
  color: #8a9e9a;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pagination { display: flex; align-items: center; gap: 0.35rem; }
.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  border: 1px solid #e4d0cb;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #2d2420;
}
.pg-btn.active { background: #6C9A8B; color: #fff; border-color: #6C9A8B; }
.pg-btn:hover:not(.active):not(:disabled) { background: #f5f0ee; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* MODAL */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f5e6e2;
}
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: #2d2420; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f0ee;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6e69;
  transition: background 0.2s;
}
.modal-close:hover { background: #e4d0cb; }
.modal-body { padding: 1.75rem 2rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-top: 1px solid #f5e6e2;
  background: #faf4f2;
}

/* SETTINGS TABS */
.settings-tabs {
  display: flex;
  gap: 0.25rem;
  background: #f5f0ee;
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.settings-tab {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  color: #8a9e9a;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.settings-tab.active { background: #fff; color: #4a7d70; box-shadow: 0 2px 8px rgba(45, 36, 32, 0.08); }

/* SETTINGS TOGGLE ROWS */
.settings-toggles { display: flex; flex-direction: column; gap: 0.5rem; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f5e6e2;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-name { font-size: 0.875rem; font-weight: 700; color: #2d2420; }
.toggle-desc { font-size: 0.78rem; color: #8a9e9a; margin-top: 0.15rem; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e4d0cb;
  border-radius: 999px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: #6C9A8B; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.settings-divider { height: 1px; background: #f5e6e2; margin: 1.25rem 0; }

/* BADGE SECONDARY */
.badge-secondary { background: #f5e6e2; color: #5a6e69; }

/* W-100 */
.w-100 { width: 100%; }

