/* ClothPOS - Modern SaaS Style CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
}

/* ===== LIGHT THEME ===== */
[data-bs-theme="light"] {
  --bg-body: #f0f2f7;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f5f6fa;
  --bg-input: #f8f9fc;
  --text-primary: #1a1d27;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #06b6d4;
  --info-light: #cffafe;
  --sidebar-active-bg: #eef2ff;
  --sidebar-active-text: #6366f1;
  --nav-label: #9ca3af;
}

/* ===== DARK THEME ===== */
[data-bs-theme="dark"] {
  --bg-body: #0f1117;
  --bg-sidebar: #161b27;
  --bg-topbar: #161b27;
  --bg-card: #1e2536;
  --bg-hover: #252d40;
  --bg-input: #1e2536;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #2a3347;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: #1e2236;
  --success: #34d399;
  --success-light: #064e3b;
  --warning: #fbbf24;
  --warning-light: #451a03;
  --danger: #f87171;
  --danger-light: #450a0a;
  --info: #22d3ee;
  --info-light: #083344;
  --sidebar-active-bg: #1e2236;
  --sidebar-active-text: #818cf8;
  --nav-label: #475569;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow: hidden;
}

.sidebar.collapsed { width: 72px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .user-info,
.sidebar.collapsed .badge { display: none !important; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar.collapsed .sidebar-header { padding: 0 12px; justify-content: center; }
.sidebar.collapsed .brand-icon { margin: 0; }

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

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; flex-shrink: 0;
}
.brand-name { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.brand-version { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }

.sidebar-toggle { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 18px; padding: 4px; }

.sidebar-search {
  margin: 12px 12px 4px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 8px 12px;
  color: var(--text-muted);
}
.sidebar-search input {
  border: none; background: none; outline: none;
  font-size: 13px; color: var(--text-primary); width: 100%;
}
.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav-section { margin-bottom: 4px; }
.nav-label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--nav-label);
  padding: 12px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition); position: relative;
  margin-bottom: 2px;
}
.nav-item i { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--accent); border-radius: 0 99px 99px 0;
}

.sidebar-footer {
  padding: 12px; border-top: 1px solid var(--border-color); flex-shrink: 0;
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-hover);
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: white; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.user-role { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.btn-logout { background: none; border: none; color: var(--text-muted); cursor: pointer; margin-left: auto; font-size: 16px; text-decoration: none; }
.btn-logout:hover { color: var(--danger); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 999; backdrop-filter: blur(2px);
}

/* ===== TOPBAR ===== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
.main-wrapper.expanded { margin-left: 72px; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-height);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  box-shadow: var(--shadow);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-hover); border: 1px solid var(--border-color);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
}
.topbar-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.topbar-time { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding: 0 8px; }
.badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg-topbar);
}
.notif-dropdown { border: 1px solid var(--border-color); background: var(--bg-card); box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.notif-item { padding: 10px 16px; border-bottom: 1px solid var(--border-color); }
.notif-item:last-child { border-bottom: none; }

/* ===== CONTENT ===== */
.content-area { padding: 24px; }
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-primary); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  background: none; border-bottom: 1px solid var(--border-color);
  padding: 16px 20px; font-weight: 600;
}
.card-body { padding: 20px; }

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.stat-card .stat-value { font-size: 24px; font-weight: 800; line-height: 1.2; margin-top: 12px; }
.stat-card .stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.stat-card .stat-change { font-size: 12px; margin-top: 8px; }
.stat-card .stat-glow {
  position: absolute; right: -20px; bottom: -20px;
  width: 100px; height: 100px; border-radius: 50%; opacity: .08;
  filter: blur(20px);
}

/* ===== TABLES ===== */
.table { color: var(--text-primary); }
.table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); border-color: var(--border-color); background: var(--bg-hover); }
.table td { border-color: var(--border-color); vertical-align: middle; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--bg-hover); }
.table-responsive { border-radius: var(--radius); overflow: hidden; }

/* ===== FORMS ===== */
.form-control, .form-select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 13.5px;
  padding: 9px 12px;
}
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
  border-color: var(--accent) !important;
  outline: none;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.input-group-text {
  background: var(--bg-hover) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* ===== BUTTONS ===== */
.btn { border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; padding: 8px 16px; transition: var(--transition); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ===== BADGES ===== */
.badge { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.status-paid { background: var(--success-light); color: var(--success); }
.status-partial { background: var(--warning-light); color: var(--warning); }
.status-due { background: var(--danger-light); color: var(--danger); }
.status-cancelled { background: var(--bg-hover); color: var(--text-muted); }

/* ===== MODALS ===== */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 16px 20px; }
.modal-title { font-weight: 700; font-size: 16px; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
  color: var(--text-muted);
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-body);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .brand-icon { width: 56px; height: 56px; font-size: 26px; margin: 0 auto 12px; }

/* ===== POS LAYOUT ===== */
body.pos-mode .content-area { padding: 0; }
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  height: calc(100vh - var(--topbar-height));
}
.pos-left {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border-color);
  overflow: hidden;
}
.pos-right { display: flex; flex-direction: column; background: var(--bg-card); }
.pos-search-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}
.pos-cats {
  display: flex; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card); overflow-x: auto;
}
.cat-chip {
  padding: 5px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  background: var(--bg-hover); color: var(--text-secondary);
  border: 1px solid var(--border-color); transition: var(--transition);
}
.cat-chip:hover, .cat-chip.active {
  background: var(--accent); color: white; border-color: var(--accent);
}
.pos-products {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
  align-content: start;
}
.pos-product-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 12px; cursor: pointer;
  transition: var(--transition); text-align: center;
}
.pos-product-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.pos-product-card:active { transform: scale(.97); }
.pos-product-card .p-img {
  width: 60px; height: 60px; border-radius: 8px; object-fit: cover;
  margin: 0 auto 8px; display: block; background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.pos-product-card .p-name { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.pos-product-card .p-price { font-size: 13px; font-weight: 700; color: var(--accent); }
.pos-product-card .p-stock { font-size: 11px; color: var(--text-muted); }
.pos-product-card.out-of-stock { opacity: .5; pointer-events: none; }

.cart-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
}
.cart-items { flex: 1; overflow-y: auto; }
.cart-item {
  padding: 10px 16px; border-bottom: 1px solid var(--border-color);
  display: flex; gap: 10px; align-items: flex-start;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--text-muted); }
.cart-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-color);
  background: var(--bg-hover); color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.qty-display { width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-total-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-hover);
}
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 13px; }
.cart-total-row.grand { font-size: 17px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--border-color); margin-top: 4px; }
.cart-actions { padding: 12px 16px; }

/* ===== CHARTS ===== */
.chart-wrapper { position: relative; }

/* ===== STOCK BADGES ===== */
.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

/* ===== RECEIPT ===== */
.receipt-modal .modal-dialog { max-width: 380px; }
.receipt { font-family: var(--font-mono); font-size: 12px; background: white; color: #000; padding: 20px; }
.receipt-header { text-align: center; border-bottom: 1px dashed #000; padding-bottom: 10px; margin-bottom: 10px; }
.receipt-table { width: 100%; font-size: 11px; }
.receipt-table td { padding: 2px 0; }
.receipt-footer { text-align: center; border-top: 1px dashed #000; padding-top: 8px; margin-top: 8px; font-size: 11px; }

/* ===== COLOR SWATCHES ===== */
.color-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); vertical-align: middle; margin-right: 4px; }

/* ===== PROGRESS ===== */
.progress { background: var(--bg-hover); border-radius: 99px; }
.progress-bar { border-radius: 99px; }

/* ===== ALERT OVERRIDES ===== */
.alert { border-radius: var(--radius-sm); font-size: 13.5px; border: none; }
.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(--info-light); color: var(--info); }

/* ===== TABS ===== */
.nav-tabs { border-bottom: 1px solid var(--border-color); }
.nav-tabs .nav-link { color: var(--text-secondary); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 16px; font-size: 13.5px; font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.nav-tabs .nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ===== DROPDOWN ===== */
.dropdown-menu {
  background: var(--bg-card); border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
}
.dropdown-item { color: var(--text-primary); font-size: 13.5px; padding: 8px 16px; }
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-divider { border-color: var(--border-color); }

/* ===== UTILITIES ===== */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }
.fw-800 { font-weight: 800; }
.font-mono { font-family: var(--font-mono); }
.gap-2 { gap: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main-wrapper { margin-left: 0 !important; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-right { position: fixed; bottom: 0; left: 0; right: 0; height: 50vh; z-index: 200; }
}

@media (max-width: 576px) {
  .content-area { padding: 16px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .pos-products { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ===== ANIMATION ===== */
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.fade-in { animation: fadeIn .25s ease; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
.pulse { animation: pulse 2s infinite; }

/* ===== PRINT ===== */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-wrapper { margin: 0 !important; }
  .receipt { font-size: 11px; }
}

/* ===== SETTINGS PAGE ===== */
.settings-nav .nav-link { border-radius: var(--radius-sm); color: var(--text-secondary); padding: 9px 14px; font-size: 13.5px; font-weight: 500; }
.settings-nav .nav-link.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.settings-nav .nav-link i { width: 20px; }

/* ===== TOGGLE SWITCH ===== */
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-switch .form-check-input { width: 40px; height: 22px; cursor: pointer; }

/* ===== ADDITIONAL POLISH ===== */

/* Pagination */
.page-link { background: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); font-size: 13px; }
.page-link:hover { background: var(--bg-hover); color: var(--accent); border-color: var(--accent); }
.page-item.active .page-link { background: var(--accent); border-color: var(--accent); }

/* List group */
.list-group-item { background: var(--bg-card); color: var(--text-primary); }

/* Code */
code { color: var(--accent); background: var(--accent-light); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Number input arrows hide */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { opacity: 0.4; }

/* Spin animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 1s linear infinite; }

/* fw-600 */
.fw-600 { font-weight: 600 !important; }

/* Sidebar collapsed state */
@media (min-width: 992px) {
  .sidebar.collapsed .nav-label { display: none !important; }
  .sidebar.collapsed .nav-section { margin-bottom: 0; }
  .sidebar.collapsed .sidebar-nav { padding: 4px 8px; }
  .sidebar.collapsed .nav-item { padding: 10px 0; }
  .sidebar.collapsed .badge { display: none !important; }
  .sidebar.collapsed .brand-text { display: none !important; }
  .sidebar.collapsed .sidebar-footer .user-info,
  .sidebar.collapsed .sidebar-footer .btn-logout { display: none !important; }
  .sidebar.collapsed .user-card { justify-content: center; padding: 10px 0; }
  .sidebar.collapsed .user-avatar { margin: 0; }
  .sidebar.collapsed .sidebar-search { display: none !important; }
}

/* POS products grid loading spin */
#posProducts .spin { font-size: 28px; color: var(--accent); }

/* Receipt print styles */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .modal-backdrop, .modal-header .btn-close, .modal-footer { display: none !important; }
  .modal { position: static !important; overflow: visible !important; }
  .modal-dialog { max-width: 100% !important; margin: 0 !important; box-shadow: none !important; }
  .modal-content { border: none !important; box-shadow: none !important; }
  .receipt { font-size: 12px !important; padding: 8px !important; }
  .no-print { display: none !important; }
}

/* Colors for roles */
.bg-purple { background-color: #8b5cf6 !important; }
.text-purple { color: #8b5cf6 !important; }

/* Settings page */
.settings-nav .nav-link { border-radius: var(--radius-sm); color: var(--text-secondary); padding: 10px 16px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; margin-bottom: 2px; transition: var(--transition); }
.settings-nav .nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.settings-nav .nav-link.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: 600; }

/* Cart empty bounce */
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
#emptyCart { animation: bounce 2s ease infinite; }

/* Topbar dropdown header */
.dropdown-header { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* POS right panel scroll */
.pos-right { overflow: hidden; }
.cart-items { overflow-y: auto; flex: 1; min-height: 0; }

/* Smooth theme transition */
* { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.1s ease; }
.btn, .nav-item, .card, .stat-card, .pos-product-card, input, select, textarea { transition: all 0.15s ease !important; }
