﻿/* ============================================================
   admin.css — Clean White-Blue Design System
   Simple, minimal, practical. All admin pages share this.
   ============================================================ */

/* ===== 0. FONT FACE ===== */

@font-face {
  font-family: 'ALKATIP TOR TOM';
  src: url('/static/fonts/ALKATIP-TOR-TOM.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ALKATIP TOR TOM';
  src: url('/static/fonts/ALKATIP-TOR-TOM.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ئۇيغۇرچە تىل ھالىتىدە خەت نۇسخىسى */
body[data-lang="ug"] {
  --font-family: 'ALKATIP TOR TOM', 'Noto Sans Arabic', 'Noto Sans SC', system-ui, sans-serif;
  font-family: 'ALKATIP TOR TOM', 'Noto Sans Arabic', 'Noto Sans SC', system-ui, sans-serif !important;
}
body[data-lang="ug"] *:not(code):not(pre):not([class*="mono"]):not(input):not(textarea):not([class*="fa"]):not(i) {
  font-family: inherit !important;
}

body[data-lang="ug"] .fas,
body[data-lang="ug"] .far,
body[data-lang="ug"] .fab,
body[data-lang="ug"] i[class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}
body[data-lang="ug"] .fab {
  font-family: "Font Awesome 6 Brands" !important;
}

/* ===== 1. VARIABLES ===== */

:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a202c;
  --text-sub: #718096;
  --accent: #3182ce;
  --accent-light: #ebf8ff;
  --accent-dark: #2c5282;
  --border: #e2e8f0;
  --danger: #e53e3e;
  --danger-light: #fed7d7;
  --success: #38a169;
  --success-light: #c6f6d5;
  --warning: #d69e2e;
  --warning-light: #fefcbf;
  --input-bg: #ffffff;
  --input-border: #cbd5e0;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 6px;
  --navbar-h: 50px;
  --font-family: 'Noto Sans SC', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  /* Compatibility variables for old pages */
  --primary-light: #ebf8ff;
  --primary-dark: #2c5282;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

[data-theme="dark"] {
  --bg: #1a202c;
  --card: #2d3748;
  --text: #e2e8f0;
  --text-sub: #a0aec0;
  --accent: #63b3ed;
  --accent-light: #2a4365;
  --accent-dark: #90cdf4;
  --border: #4a5568;
  --danger: #fc8181;
  --danger-light: #553c3c;
  --success: #68d391;
  --success-light: #2f4f3f;
  --warning: #f6e05e;
  --warning-light: #54440a;
  --input-bg: #2d3748;
  --input-border: #4a5568;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.4);
  /* Compatibility variables for old pages (dark) */
  --primary-light: #2a4365;
  --primary-dark: #90cdf4;
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #d1d5db;
  --gray-700: #e5e7eb;
  --gray-900: #f9fafb;
}

/* ===== 2. RESET ===== */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-top: var(--navbar-h);
  transition: background 0.2s, color 0.2s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ===== 3. TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600; line-height: 1.3; color: var(--text);
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

.text-sub { color: var(--text-sub); font-size: 0.85rem; }
.text-center { text-align: center; }

/* ===== 4. NAVBAR ===== */

.top-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 1000;
}

.top-navbar .nav-left {
  display: flex; align-items: center; gap: 8px;
}

.top-navbar .nav-left .logo {
  width: 28px; height: 28px; border-radius: 4px;
}

.top-navbar .nav-left .app-name {
  font-weight: 600; font-size: 1rem; color: var(--text); white-space: nowrap;
}

.top-navbar .nav-center {
  display: flex; align-items: center; gap: 2px;
}

.top-navbar .nav-center a,
.top-navbar .nav-center button {
  padding: 6px 12px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-sub); background: transparent; border: none;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  border-radius: 4px; transition: all 0.15s;
}

.top-navbar .nav-center a:hover,
.top-navbar .nav-center a.active {
  color: var(--accent); background: var(--accent-light);
}

.top-navbar .nav-right {
  display: flex; align-items: center; gap: 6px;
}

.hamburger-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; color: var(--text);
}

.hamburger-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text); margin: 4px 0; border-radius: 1px;
}

/* ===== 5. LANGUAGE & THEME TOGGLES ===== */

.lang-btn {
  background: var(--accent-light); border: 1px solid var(--border);
  color: var(--accent); padding: 4px 12px; border-radius: 4px;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.lang-btn:hover { background: var(--accent); color: #fff; }

[data-lang="zh"] .ug-text { display: none !important; }
[data-lang="ug"] .zh-text { display: none !important; }

.theme-btn {
  width: 38px; height: 20px; background: var(--border);
  border-radius: 10px; position: relative; cursor: pointer;
  border: none; transition: background 0.2s;
}
.theme-btn::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff;
  border-radius: 50%; transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
[data-theme="dark"] .theme-btn { background: var(--accent); }
[data-theme="dark"] .theme-btn::after { transform: translateX(18px); }

.theme-btn .t-sun, .theme-btn .t-moon {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 9px; pointer-events: none;
}
.theme-btn .t-sun { right: 4px; color: #d69e2e; }
.theme-btn .t-moon { left: 4px; color: #a0aec0; display: none; }
[data-theme="dark"] .theme-btn .t-sun { display: none; }
[data-theme="dark"] .theme-btn .t-moon { display: block; }

.logout-btn, .btn-icon {
  padding: 5px 10px; border-radius: 4px; font-size: 0.8rem;
  font-weight: 500; cursor: pointer; font-family: inherit;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-sub); white-space: nowrap; transition: all 0.15s;
}
.logout-btn:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.btn-icon:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 6. SIDEBAR ===== */

.sidebar {
  position: fixed; top: var(--navbar-h); left: 0; bottom: 0;
  width: 200px; background: var(--card);
  border-right: 1px solid var(--border);
  padding: 8px 0; overflow-y: auto; z-index: 900;
  transition: transform 0.2s;
}
.sidebar.collapsed { transform: translateX(-100%); }

.sidebar .sidebar-menu { list-style: none; }

.sidebar .sidebar-menu li a,
.sidebar .sidebar-menu li button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 16px; font-size: 0.85rem;
  font-weight: 500; color: var(--text-sub);
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit; transition: all 0.15s;
}
.sidebar .sidebar-menu li a:hover,
.sidebar .sidebar-menu li a.active {
  color: var(--accent); background: var(--accent-light);
  border-left: 3px solid var(--accent); padding-left: 13px;
}
.sidebar .sidebar-menu li .menu-icon {
  font-size: 0.9rem; width: 18px; text-align: center; flex-shrink: 0;
}

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 899;
}
.sidebar-overlay.active { display: block; }

/* ===== 7. MAIN CONTENT ===== */

.main-content,
.main-container,
.content-area {
  margin-left: 200px; padding: 20px;
  min-height: calc(100vh - var(--navbar-h));
  transition: margin-left 0.2s;
}
.main-content.full-width,
.main-container.full-width { margin-left: 0; }

/* ===== 8. CARD ===== */

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 20px; transition: box-shadow 0.15s;
}
.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 1rem; }

/* ===== 9. BUTTONS ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; padding: 7px 16px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; font-family: inherit;
  cursor: pointer; border: none; white-space: nowrap; transition: all 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

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

.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

.btn-sm { padding: 4px 10px; font-size: 0.78rem; }
.btn-lg { padding: 10px 24px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ===== 10. FORM ===== */

.input-field {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 0.88rem; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.input-field::placeholder { color: var(--text-sub); }
.input-field:focus { border-color: var(--accent); }

.input-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.input-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); }

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
textarea.input-field { min-height: 80px; resize: vertical; }

/* ===== 11. TABLE ===== */

.table-container {
  width: 100%; overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
}
.table-container table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.table-container thead th {
  background: var(--bg); padding: 10px 12px; text-align: left;
  font-weight: 600; color: var(--text-sub); font-size: 0.78rem;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.table-container tbody td {
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle;
}
.table-container tbody tr:hover { background: var(--accent-light); }

/* ===== 12. MODAL ===== */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); border: 1px solid var(--border);
  width: 90%; max-width: 480px; max-height: 85vh; overflow-y: auto;
  padding: 20px; transform: translateY(10px); transition: transform 0.2s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-box .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.modal-box .modal-header h3 { font-size: 1rem; }

.modal-close {
  width: 28px; height: 28px; border-radius: 4px;
  border: none; background: var(--bg); color: var(--text-sub);
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

/* ===== 13. BADGE ===== */

.badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 10px; font-size: 0.72rem; font-weight: 600;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-info    { background: var(--accent-light); color: var(--accent); }

/* ===== 14. ALERT ===== */

.alert {
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 6px; margin-bottom: 14px;
}
.alert-success { background: var(--success-light); color: var(--success); }
.alert-danger  { background: var(--danger-light); color: var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-info    { background: var(--accent-light); color: var(--accent); }

/* ===== 15. PAGINATION ===== */

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; margin-top: 16px;
}
.pagination button, .pagination a {
  min-width: 32px; height: 32px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 4px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.pagination button:hover, .pagination a:hover {
  border-color: var(--accent); color: var(--accent);
}
.pagination .active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.pagination .disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== 16. EMPTY STATE ===== */

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px; text-align: center;
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.3; }
.empty-state .empty-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state .empty-desc { font-size: 0.82rem; color: var(--text-sub); max-width: 320px; }

/* ===== 17. RTL SUPPORT (DISABLED - layout stays the same for all languages) ===== */

/* ===== 18. ANIMATIONS ===== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.25s ease both; }

/* ===== 19. RESPONSIVE — Tablet ===== */

@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar { width: 180px; }
  .main-content, .main-container, .content-area { margin-left: 180px; padding: 16px; }
  .card { padding: 16px; }
}

/* ===== 20. RESPONSIVE — Mobile ===== */

@media (max-width: 768px) {
  .hamburger-btn { display: flex; flex-direction: column; justify-content: center; }
  .sidebar { transform: translateX(-100%); z-index: 1050; }
  .sidebar.open { transform: translateX(0); }
  .main-content, .main-content.full-width,
  .main-container, .main-container.full-width,
  .content-area { margin-left: 0; padding: 14px; }
  .top-navbar .nav-center { display: none; }
  .card { padding: 14px; }
  .btn { padding: 7px 14px; font-size: 0.82rem; }
  .table-container thead th, .table-container tbody td { padding: 8px 10px; font-size: 0.78rem; }
  .modal-box { width: 95%; padding: 16px; }
}

/* ===== 21. RESPONSIVE — Small mobile ===== */

@media (max-width: 480px) {
  html { font-size: 14px; }
  .main-content, .main-container, .content-area { padding: 10px; }
  .card { padding: 12px; border-radius: 4px; }
  .top-navbar { padding: 0 10px; }
  .top-navbar .nav-left .app-name { font-size: 0.9rem; }
  .btn-sm { padding: 3px 8px; font-size: 0.72rem; }
  .pagination button, .pagination a { min-width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ===== 22. DATA TABLE (for management pages) ===== */

.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.data-table thead th {
  background: var(--bg); padding: 10px 12px; text-align: left;
  font-weight: 600; color: var(--text-sub); font-size: 0.78rem;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table tbody td {
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--accent-light); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ===== 23. ACTION BAR (search + button row) ===== */

.action-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.action-bar .search-box { flex: 1; min-width: 200px; max-width: 400px; }
.action-bar .search-input {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 0.85rem; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.action-bar .search-input:focus { border-color: var(--accent); }

/* standalone search-box / search-input (for sidebars etc.) */
.search-box { margin-bottom: 12px; }
.search-input {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 0.85rem; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); }

/* ===== 24. FORM CONTROL (for modal forms) ===== */

.form-control {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 0.88rem; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.form-control::placeholder { color: var(--text-sub); }
.form-control:focus { border-color: var(--accent); }

.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); }

/* ===== 25. ACTION BUTTONS (table row buttons) ===== */

.action-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-edit {
  padding: 4px 10px; font-size: 0.78rem; font-weight: 500;
  border: none; border-radius: 4px; cursor: pointer; font-family: inherit;
  background: var(--accent); color: #fff; transition: background 0.15s; white-space: nowrap;
}
.btn-edit:hover { background: var(--accent-dark); }

.btn-delete {
  padding: 4px 10px; font-size: 0.78rem; font-weight: 500;
  border: none; border-radius: 4px; cursor: pointer; font-family: inherit;
  background: var(--danger); color: #fff; transition: opacity 0.15s; white-space: nowrap;
}
.btn-delete:hover { opacity: 0.85; }

.btn-toggle {
  padding: 4px 10px; font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-family: inherit;
  background: var(--card); color: var(--text-sub); white-space: nowrap; transition: all 0.15s;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* standalone btn-primary (no .btn prefix) for old pages */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 16px; border-radius: var(--radius); font-size: 0.85rem;
  font-weight: 500; font-family: inherit; cursor: pointer; border: none;
  white-space: nowrap; transition: all 0.15s;
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 16px; border-radius: var(--radius); font-size: 0.85rem;
  font-weight: 500; font-family: inherit; cursor: pointer; border: none;
  white-space: nowrap; transition: all 0.15s;
  background: var(--gray-200); color: var(--gray-700);
}
.btn-secondary:hover { background: var(--gray-300); }

.btn-cancel {
  padding: 8px 18px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-family: inherit; background: var(--card); color: var(--text-sub); white-space: nowrap;
  transition: all 0.15s;
}
.btn-cancel:hover { background: var(--bg); }

.btn-confirm {
  padding: 8px 18px; font-size: 0.85rem; font-weight: 500;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: inherit; background: var(--accent); color: #fff; white-space: nowrap;
  transition: background 0.15s;
}
.btn-confirm:hover { background: var(--accent-dark); }

/* ===== 26. CONTENT HEADER ===== */

.content-header {
  margin-bottom: 20px; display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}

/* ===== 27. ORDER INPUT ===== */

.order-input {
  padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--input-border); background: var(--input-bg);
  color: var(--text); font-size: 0.88rem; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.order-input:focus { border-color: var(--accent); }

/* ===== 28. UTILITIES ===== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 6px; }
.gap-md { gap: 12px; }
.w-full { width: 100%; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.hidden { display: none; }

/* ===== 29. PAGE HEADER ===== */

.admin-header {
  text-align: center; margin-bottom: 24px; padding: 16px 0;
}
.admin-header h1 {
  font-size: 1.5rem; font-weight: 600; color: var(--text); margin: 0;
}

/* ===== 30. STATUS BADGE ===== */

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.72rem; font-weight: 600;
}
.status-active { background: var(--success-light); color: var(--success); }
.status-blacklist { background: var(--danger-light); color: var(--danger); }

/* ===== 31. HISTORY SIDEBAR (home, glossy-door, vacuum-forming) ===== */

.history-sidebar {
  position: fixed; top: var(--navbar-h); left: 0; bottom: 0;
  width: 280px; background: var(--card);
  border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto; z-index: 900;
  transition: transform 0.2s;
}
.history-header {
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.history-header h3 { font-size: 1rem; color: var(--text); margin: 0; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-item {
  padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
  background: var(--card);
}
.history-item:hover { border-color: var(--accent); background: var(--accent-light); }
.history-item.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* content-area inside main-container (for pages with history sidebar) */
.main-container.has-history .content-area {
  margin-left: 280px; padding: 20px;
  min-height: calc(100vh - var(--navbar-h));
}

/* Responsive: history sidebar */
@media (max-width: 768px) {
  .history-sidebar { transform: translateX(-100%); z-index: 1050; }
  .history-sidebar.open { transform: translateX(0); }
  .main-container.has-history .content-area { margin-left: 0; }
}
