@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #0f0f1a;
  --bg-secondary: #16162a;
  --bg-card: #1e1e35;
  --bg-card-hover: #252545;
  --border: rgba(99, 102, 241, 0.2);
  --border-light: rgba(255, 255, 255, 0.06);

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px rgba(99, 102, 241, 0.15);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────── SCROLLBAR ─────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─────────────────── LAYOUT ─────────────────── */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─────────────────── SIDEBAR ─────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-light);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 8px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-user {
  padding: 16px 12px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

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

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ─────────────────── MAIN ─────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  height: var(--header-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.header-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ─────────────────── CARDS ─────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─────────────────── STAT CARDS ─────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.purple { background: rgba(99, 102, 241, 0.15); }
.stat-icon.blue   { background: rgba(14, 165, 233, 0.15); }
.stat-icon.green  { background: rgba(16, 185, 129, 0.15); }
.stat-icon.amber  { background: rgba(245, 158, 11, 0.15); }
.stat-icon.red    { background: rgba(239, 68, 68, 0.15); }

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─────────────────── TABLE ─────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td {
  background: rgba(99, 102, 241, 0.04);
  color: var(--text);
}

/* ─────────────────── BADGE ─────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green  { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-blue   { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.badge-amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-red    { background: rgba(239, 68, 68, 0.15);  color: #f87171; }
.badge-purple { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }

/* ─────────────────── BUTTONS ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white !important;
  border: 1px solid #b91c1c;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}
.btn-danger:active {
  transform: translateY(0);
}

.btn-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.25); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─────────────────── FORMS ─────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select option { background: var(--bg-card); color: var(--text); }
.form-textarea { resize: vertical; min-height: 80px; }

/* ─────────────────── MODAL ─────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease forwards;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ─────────────────── LOGIN ─────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), var(--glow);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.login-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.login-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

.login-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  margin-top: 12px;
  display: none;
}

/* ─────────────────── GRID ─────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ─────────────────── UTILITIES ─────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 12px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ─────────────────── EMPTY STATE ─────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.empty-state-sub { font-size: 13px; margin-top: 4px; }

/* ─────────────────── PROGRESS BAR ─────────────────── */
.progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.progress-bar.danger { background: linear-gradient(90deg, var(--danger), #fb923c); }
.progress-bar.success { background: linear-gradient(90deg, var(--success), #34d399); }

/* ─────────────────── SPINNER ─────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─────────────────── ANIMATIONS ─────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(20px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────── SEARCH BAR ─────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0 12px;
  min-width: 220px;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 9px 0;
  width: 100%;
  font-family: inherit;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-icon { color: var(--text-muted); font-size: 15px; }

/* ─────────────────── RESPONSIVE ─────────────────── */
.hamburger-btn {
  display: none !important;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .hamburger-btn {
    display: flex !important;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Header responsive layouts */
  .header {
    height: auto !important;
    min-height: 56px;
    padding: 12px 16px !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .header > .hamburger-btn {
    order: 1;
    margin-right: 8px !important;
  }
  .header > div:first-of-type,
  .header > .header-title {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header > .search-bar,
  .header > .flex,
  .header > button:not(.hamburger-btn),
  .header > div:not(:first-of-type),
  .header > select {
    order: 3;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }
  .header .flex {
    flex-wrap: wrap;
    gap: 8px !important;
    width: 100%;
  }
  .header .search-bar,
  .header select,
  .header input,
  .header .btn {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 120px !important;
  }
}

@media (max-width: 600px) {
  .content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
}

/* ─────────────────── STOCK LEVEL INDICATOR ─────────────────── */
.stock-level {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-qty {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.stock-qty.critical { color: var(--danger); }
.stock-qty.low { color: var(--warning); }
.stock-qty.ok { color: var(--success); }

/* ─────────────────── CHART PLACEHOLDER ─────────────────── */
.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
}

/* ─────────────────── SECTION HEADER ─────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─────────────────── TAG ─────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
}

/* ─────────────────── TABS ─────────────────── */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.15);
}
.tab-btn.tab-danger:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.tab-btn.tab-danger.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ─────────────────── CUSTOM DROPDOWN (AUTOCOMPLETE) ─────────────────── */
.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1010;
  background: #1e1e30;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  display: none;
}

.custom-dropdown-item {
  padding: 11px 16px;
  cursor: pointer;
  color: #c3c4db;
  transition: all 0.2s ease;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.selected {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  padding-left: 20px;
}

.custom-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 10px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* ─────────────────── QUANTITY & PRICE ADJUSTER ─────────────────── */
.input-group-adjust {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  max-width: 140px;
  height: 34px;
}
.input-group-adjust .adjust-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text);
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.input-group-adjust .adjust-btn:hover {
  background: var(--primary);
  color: white;
}
.input-group-adjust input {
  width: 50px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  padding: 0 4px;
  height: 34px;
  -moz-appearance: textfield;
}
.input-group-adjust input::-webkit-outer-spin-button,
.input-group-adjust input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ─────────────────── CART LAYOUT ─────────────────── */
.cart-table-container {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
}
.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cart-title-row h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  margin: 0;
}
.cart-total-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

