/* ==========================================================================
   Parmar Boots - Shoe Shop Inventory Mobile Application Stylesheet
   AMOLED Dark Theme with Rich Accents
   ========================================================================== */

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

:root {
  --bg-app: #0d0e12;
  --bg-surface: #17181f;
  --bg-card: #1f2029;
  --bg-card-hover: #272833;
  --bg-input: #121318;
  --border-subtle: #2d2f3b;
  --border-active: #f59e0b;

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;

  --stock-red: #ef4444;
  --stock-red-bg: #ef4444;
  --stock-green: #10b981;
  --stock-green-bg: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-fab: 0 8px 24px rgba(245, 158, 11, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  user-select: none;
}

/* Mobile Application Container */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
}

/* Top App Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, calc(10px + env(safe-area-inset-top))) max(18px, calc(12px + env(safe-area-inset-right))) 16px max(18px, calc(12px + env(safe-area-inset-left)));
  background-color: var(--bg-app);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.top-icon-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.top-icon-btn:active {
  background-color: var(--bg-card);
  transform: scale(0.92);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Shop Switcher Pill */
.shop-pill-select-wrapper {
  position: relative;
}

.shop-pill-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 18px 8px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.shop-pill-btn:active {
  transform: scale(0.96);
  background-color: var(--accent-blue-hover);
}

.shop-pill-btn svg {
  transition: transform 0.2s ease;
}

.shop-dropdown-menu {
  position: absolute;
  top: 115%;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.shop-dropdown-menu.active {
  display: flex;
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.shop-dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.shop-dropdown-item:hover, .shop-dropdown-item:active {
  background-color: var(--bg-card);
}

.shop-dropdown-item.active {
  color: var(--accent-amber);
}

/* Dashboard Summary Cards */
.summary-cards-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 12px;
  padding: 8px 18px 16px 18px;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.metric-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-value.metric-low {
  color: var(--stock-red);
}

/* Search & Add Bar */
.action-bar-container {
  display: flex;
  gap: 12px;
  padding: 0 18px 16px 18px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 42px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

.btn-add-primary {
  background: var(--accent-amber);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: transform 0.15s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-add-primary:active {
  transform: scale(0.96);
  background-color: var(--accent-amber-hover);
}

/* Stock List Table Header */
.stock-table-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 1px solid #1e2029;
  gap: 4px;
}

.stock-table-header .th-item {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 2px;
  font-size: 11.5px;
  font-weight: 800;
}

.stock-table-header .th-size {
  flex: 0 0 28px;
  min-width: 28px;
  max-width: 32px;
  text-align: center;
  font-size: 10px;
}

.stock-table-header .th-shop {
  flex: 0 0 36px;
  min-width: 34px;
  max-width: 42px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.3px;
}

.stock-table-header .th-total {
  flex: 0 0 32px;
  min-width: 30px;
  max-width: 36px;
  text-align: center;
  font-size: 10px;
}

/* Stock List Item Rows */
.stock-list-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stock-item-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #191b22;
  cursor: pointer;
  gap: 4px;
  transition: background-color 0.15s ease;
}

.stock-item-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.stock-item-row:active {
  background-color: rgba(245, 158, 11, 0.08);
}

.stock-col-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stock-col-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-col-notes {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-col-size {
  flex: 0 0 28px;
  min-width: 28px;
  max-width: 32px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.stock-col-shop {
  flex: 0 0 36px;
  min-width: 34px;
  max-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-col-total {
  flex: 0 0 32px;
  min-width: 30px;
  max-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stock Count Pills */
.stock-pill {
  width: 32px;
  height: 21px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.stock-pill-shopA {
  background-color: var(--stock-red);
}

.stock-pill-shopB {
  background-color: var(--stock-green);
}

.stock-pill-total {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--stock-red);
  text-align: center;
}

.stock-pill-total.positive {
  color: #f3f4f6;
}

/* Shops Management in Settings */
.btn-sm-action {
  background-color: var(--accent-amber);
  color: #000000;
  border: none;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn-sm-action:active {
  transform: scale(0.94);
}

.shops-settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-item-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.shop-color-circle {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.shop-name-input {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 4px;
  outline: none;
}

.shop-name-input:focus {
  background: var(--bg-surface);
  border-color: var(--accent-amber);
}

.btn-delete-shop {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-delete-shop:hover, .btn-delete-shop:active {
  color: var(--stock-red);
  background-color: rgba(239, 68, 68, 0.15);
}

.new-shop-box {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 4px;
  animation: dropdownFade 0.2s ease-out;
}

.color-palette-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:active {
  transform: scale(0.9);
}

.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 8px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Floating History Button (Positioned above pagination bar) */
.fab-history-btn {
  position: fixed;
  bottom: max(92px, calc(80px + env(safe-area-inset-bottom)));
  right: calc(50% - 240px + 20px);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--accent-amber);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  z-index: 35;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

@media (max-width: 480px) {
  .fab-history-btn {
    right: max(18px, calc(12px + env(safe-area-inset-right)));
    bottom: max(92px, calc(80px + env(safe-area-inset-bottom)));
  }
}

.fab-history-btn:active {
  transform: scale(0.9);
  background-color: var(--accent-amber-hover);
}

/* Modal Backdrop & Shell */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
  animation: overlayFadeIn 0.2s ease-out;
}

/* Centered Dialog Overlays (Quick Actions, Confirmations, Password Prompts) */
#quickActionOverlay,
#confirmModalOverlay,
#passwordPromptModal {
  align-items: center !important;
  justify-content: center !important;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 16px);
  max-height: calc(100vh - 16px);
  background-color: var(--bg-app);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
  animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-back-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 12px;
  transition: background-color 0.15s ease;
}

.modal-back-btn:active {
  background-color: var(--bg-card);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Modal Section Titles */
.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 10px;
}

/* Modal Form Inputs */
.form-input-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-card:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--accent-amber-glow);
}

/* Size Stepper Grid / List (Sizes 2 to 14) */
.sizes-stepper-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.size-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.size-stepper-row:last-child {
  border-bottom: none;
}

.size-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.size-number {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  width: 28px;
}

.size-current-stock {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.size-current-stock .cur-stock-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.size-current-stock .cur-stock-val.in-stock {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.size-current-stock .cur-stock-val.zero-stock {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 25-Item Pagination Controls */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pagination-info {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
}

.pagination-info strong {
  color: var(--accent-amber);
}

.pagination-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-amber);
  color: #000000;
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: transparent;
}

.size-stepper-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--accent-amber);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.stepper-btn:active {
  transform: scale(0.9);
  background-color: var(--accent-amber-hover);
}

.stepper-qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

/* Transaction Type Toggle Tabs (IN, TRF, OUT) */
.transaction-type-tabs {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.tx-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tx-tab-btn.tab-in {
  color: var(--stock-green);
}

.tx-tab-btn.tab-in.active {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: var(--stock-green);
  color: #34d399;
}

.tx-tab-btn.tab-trf {
  color: var(--accent-amber);
}

.tx-tab-btn.tab-trf.active {
  background-color: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  color: #fbbf24;
}

.tx-tab-btn.tab-out {
  color: var(--stock-red);
}

.tx-tab-btn.tab-out.active {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: var(--stock-red);
  color: #f87171;
}

/* Transfer Shop Direction Selector */
.transfer-direction-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.transfer-shop-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}

.transfer-shop-pill select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.transfer-shop-pill select option {
  background-color: #191c23 !important;
  color: #f3f4f6 !important;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

/* Confirm Action Button */
.modal-footer {
  padding: 14px 20px max(20px, calc(14px + env(safe-area-inset-bottom))) 20px;
  background-color: var(--bg-app);
  border-top: 1px solid var(--border-subtle);
  position: sticky;
  bottom: 0;
}

.btn-confirm-action {
  width: 100%;
  background: var(--accent-amber);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-confirm-action:active {
  transform: scale(0.98);
  background-color: var(--accent-amber-hover);
}

/* Quick Action Popup Menu (Screenshot 5) */
.quick-action-menu {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: scalePop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scalePop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.quick-action-header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.quick-action-item {
  background: transparent;
  border: none;
  color: #e5e7eb;
  padding: 14px 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quick-action-item:hover, .quick-action-item:active {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.quick-action-item.delete-item {
  color: var(--stock-red);
}

/* History / Log List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-type-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.history-type-tag.IN {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.history-type-tag.OUT {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.history-type-tag.TRF {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.history-time {
  font-size: 12px;
  color: var(--text-muted);
}

.history-product-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-sizes-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: #1f2029;
  border: 1px solid var(--accent-amber);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 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);
  gap: 14px;
}

.empty-state svg {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Settings Form Groups */
.settings-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.settings-btn-secondary:active {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-amber);
}

.settings-btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--stock-red);
  color: #f87171;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Fullscreen App Lock & Shop Selection Screen (Matching Reference Screenshot) */
.app-lock-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.shop-login-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scalePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.shoe-stock-badge-box {
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px;
}

.shoe-stock-badge-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  line-height: 1.1;
  margin-top: 2px;
}

.shoe-stock-main-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.shoe-stock-gold-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.5px;
}

/* White Selection Card Container */
.shop-selection-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 28px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.shop-buttons-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-login-btn {
  width: 100%;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 18px 24px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-login-btn:hover {
  filter: brightness(1.08);
}

.shop-login-btn:active {
  transform: scale(0.97);
}

.admin-login-link-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}

.admin-login-link-btn:hover {
  color: #2563eb;
}

.login-secure-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
}

/* History Filter Tabs */
.history-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.history-filter-tabs::-webkit-scrollbar {
  display: none;
}

.history-filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.history-filter-btn.active {
  background-color: var(--accent-amber);
  color: #000000;
  border-color: var(--accent-amber);
}

/* History Card Audit Badges */
.history-shop-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-type-tag.DELETE_SIZE,
.history-type-tag.DELETE_ARTICLE,
.history-type-tag.DELETE {
  background-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.history-type-tag.IMPORT {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.history-type-tag.EDIT_ARTICLE {
  background-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

/* ==========================================
   EDIT ARTICLE & COMPONENTS MODAL STYLES
   ========================================== */
.edit-sizes-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
}

.edit-size-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.edit-size-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.02);
}

.edit-size-badge {
  flex: 0 0 54px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}

.edit-shops-inputs {
  flex: 1 1 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.edit-shop-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 65px;
}

.edit-shop-col label {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.edit-stock-num-input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
  width: 100%;
  transition: border-color 0.15s ease;
}

.edit-stock-num-input:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.edit-size-total {
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 3px 4px;
}

.edit-total-label {
  font-size: 9px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
}

.edit-total-val {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #60a5fa;
}

.btn-delete-size-inline {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-delete-size-inline:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-delete-size-inline:active {
  transform: scale(0.92);
}
