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

:root {
  --bg-deep: #08080f;
  --bg-surface: #12121e;
  --bg-card: rgba(18, 18, 30, 0.85);
  --border-subtle: rgba(138, 43, 226, 0.12);
  --border-accent: rgba(168, 85, 247, 0.35);
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-dim: rgba(168, 85, 247, 0.12);
  --accent-glow: 0 0 20px rgba(168, 85, 247, 0.25);
  --accent-glow-sm: 0 0 10px rgba(168, 85, 247, 0.15);
  --accent-ring: 0 0 0 2px rgba(168, 85, 247, 0.4);
  --text-primary: #f5f3ff;
  --text-secondary: #a5a0c8;
  --text-dim: #6b6580;
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.12);
  --success: #34d399;
  --success-dim: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  min-height: 100vh;
}

#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--text-dim);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(14, 12, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-subtle);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: var(--radius-full); }

.sidebar-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--accent-glow);
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-md);
  transition: color 0.15s;
}

.sidebar-section-header:hover {
  color: var(--text-secondary);
}

.sidebar-section-header .section-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.sidebar-section-header.collapsed .section-arrow {
  transform: rotate(-90deg);
}

.sidebar-section-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  max-height: 400px;
  transition: max-height 0.25s ease;
}

.sidebar-section-body.collapsed {
  max-height: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
  position: relative;
}

.sidebar-nav a:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.sidebar-nav a.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.sidebar-nav a .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-nav a .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sidebar-nav a .nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  color: var(--accent);
  min-width: 22px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
}

.sidebar-user {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sidebar-user .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-logout {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-dim);
}

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 36px 44px;
  max-width: calc(100vw - 260px);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 36px;
}

.page-header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.page-header a {
  color: var(--accent);
}

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--accent-glow-sm);
}

.stat-card .stat-icon {
  margin-bottom: 14px;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ===== TABLE / CONTAINER ===== */
.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== VIEW TOGGLE ===== */
.view-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle button {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-toggle button:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.view-toggle button:hover {
  color: var(--text-secondary);
  background: rgba(168, 85, 247, 0.06);
}

.view-toggle button.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===== SEARCH ===== */
.search-input {
  padding: 8px 14px;
  background: rgba(14, 12, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.83rem;
  font-family: var(--font);
  width: 240px;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow-sm);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--accent-glow);
}

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

.btn-outline:hover {
  background: var(--accent-dim);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dim);
}

.btn-sm {
  padding: 5px 14px;
  font-size: 0.76rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* ===== PRODUCT TABLE ===== */
.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.product-table th.sortable {
  cursor: pointer;
}

.product-table th.sortable:hover {
  color: var(--text-secondary);
}

.product-table td {
  padding: 12px 16px;
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(138, 43, 226, 0.04);
  vertical-align: middle;
}

.product-table tr:hover td {
  background: rgba(168, 85, 247, 0.04);
}

.product-table .product-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.thumb-placeholder {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--border-subtle);
}

.product-table .product-name {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table .product-category {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-table .product-price {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.product-table .product-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
}

.product-table .actions {
  display: flex;
  gap: 5px;
}

.actions .action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.actions .action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.actions .action-btn.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-dim);
}

/* ===== CARD VIEW ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 18px 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}

.product-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--accent-glow-sm);
}

.product-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.product-card .card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.product-card .card-body {
  padding: 14px 16px;
}

.product-card .card-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-card .card-price {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.product-card .card-category {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.product-card .card-actions {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ===== LIST VIEW ===== */
.product-list-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px;
}

.product-list-compact .list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: all 0.15s;
  border: 1px solid transparent;
}

.product-list-compact .list-item:hover {
  background: var(--accent-dim);
  border-color: var(--border-subtle);
}

.product-list-compact .list-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.product-list-compact .list-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.product-list-compact .list-info {
  flex: 1;
  min-width: 0;
}

.product-list-compact .list-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-list-compact .list-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
}

.product-list-compact .list-price {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.product-list-compact .list-category {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.product-list-compact .list-badge {
  margin-left: auto;
}

/* ===== FORM ===== */
.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 820px;
}

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

.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(14, 12, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font);
  transition: all 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow-sm);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
  font-family: var(--font);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

/* ===== IMAGE UPLOADER ===== */
.image-uploader {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(14, 12, 24, 0.4);
}

.image-uploader:hover {
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

.image-uploader .upload-icon {
  margin-bottom: 10px;
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  margin-left: auto;
  margin-right: auto;
}

.image-uploader .upload-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.image-preview {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.image-preview .preview-item {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border-subtle);
  transition: border-color 0.15s;
}

.image-preview .preview-item:hover {
  border-color: var(--accent);
}

.image-preview .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  animation: slideIn 0.25s ease-out;
  max-width: 380px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  font-family: var(--font);
}

.toast.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.toast.error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
}

.pagination button {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: all 0.15s;
}

.pagination button:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.pagination button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--accent-glow-sm);
}

/* ===== LOGIN ===== */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--accent-glow-sm);
}

.login-card .login-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.login-card .login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 0.88rem;
}

.login-card .github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 36px;
  background: #24292e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font);
}

.login-card .github-btn:hover {
  background: #2f363d;
  box-shadow: var(--accent-glow);
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-dim);
}

.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.empty-state p {
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 64px;
    padding: 20px 8px;
  }
  .sidebar-logo { font-size: 0; gap: 0; }
  .sidebar-logo .logo-dot { width: 12px; height: 12px; }
  .sidebar-section-header { display: none; }
  .sidebar-nav a { justify-content: center; padding: 10px; }
  .sidebar-nav a .nav-badge,
  .sidebar-nav a span:not(.nav-icon),
  .sidebar-user { display: none; }
  .sidebar-footer { text-align: center; }
  .sidebar-logout { font-size: 0; padding: 10px; }
  .main { margin-left: 64px; padding: 20px; max-width: calc(100vw - 64px); }
  .form-row { grid-template-columns: 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .product-table .product-name { max-width: 120px; }
}
