/* BestSyracuse Hoodie Uploader V2 - Professional UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --bg: #f4f5f7;
  --bg-white: #ffffff;
  --border: #e2e6ea;
  --border-dark: #ced4da;
  --text: #212529;
  --text-muted: #6c757d;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --secondary: #6c757d;
  --dark: #212529;
  --nav-height: 56px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --transition: 150ms ease;
}

body {
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- LAYOUT ---- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page { display: none; flex: 1; flex-direction: column; }
.page.active { display: flex; flex-direction: column; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--dark);
  color: white;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.navbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: white; text-decoration: none; }
.navbar-badge { background: var(--warning); color: var(--dark); border-radius: 4px; padding: 2px 8px; font-weight: 700; font-size: 0.875rem; }
.navbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navbar-subtitle { background: #1a1f2e; color: rgba(255,255,255,0.5); padding: 6px 0; font-size: 0.8125rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---- CARDS ---- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.card-body { padding: 16px; }
.card-header.bg-primary { background: var(--primary); color: white; border-color: var(--primary-dark); }
.card-header.bg-dark { background: var(--dark); color: white; border-color: #1a1f2e; }
.card-header.bg-success { background: var(--success); color: white; }
.card-header.bg-danger { background: var(--danger); color: white; }
.card-header.bg-info { background: var(--info); color: var(--dark); }
.card-header.bg-secondary { background: var(--secondary); color: white; }
.card-header.bg-warning { background: var(--warning); color: var(--dark); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 4px 10px; font-size: 0.8125rem; }
.btn-lg { padding: 10px 20px; font-size: 1rem; }
.btn-w100 { width: 100%; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #157347; border-color: #157347; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #bb2d3b; border-color: #bb2d3b; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: var(--dark); }
.btn-warning:hover:not(:disabled) { background: #e0a800; border-color: #e0a800; }
.btn-dark { background: var(--dark); border-color: var(--dark); color: white; }
.btn-dark:hover:not(:disabled) { background: #1a1f28; }
.btn-secondary { background: var(--secondary); border-color: var(--secondary); color: white; }
.btn-secondary:hover:not(:disabled) { background: #5c636a; }

.btn-outline-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover:not(:disabled) { background: var(--primary); color: white; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); }
.btn-outline-light:hover:not(:disabled) { background: rgba(255,255,255,0.15); border-color: white; color: white; }
.btn-outline-warning { background: transparent; border-color: var(--warning); color: var(--warning); }
.btn-outline-warning:hover:not(:disabled) { background: var(--warning); color: var(--dark); }
.btn-outline-success { background: transparent; border-color: var(--success); color: var(--success); }
.btn-outline-success:hover:not(:disabled) { background: var(--success); color: white; }
.btn-outline-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-outline-danger:hover:not(:disabled) { background: var(--danger); color: white; }
.btn-outline-secondary { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.btn-outline-secondary:hover:not(:disabled) { background: var(--secondary); color: white; }
.btn-outline-dark { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-outline-dark:hover:not(:disabled) { background: var(--dark); color: white; }
.btn-outline-info { background: transparent; border-color: var(--info); color: var(--info); }
.btn-outline-info:hover:not(:disabled) { background: var(--info); color: var(--dark); }

/* ---- FORM CONTROLS ---- */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: var(--text-xs); font-weight: 600; margin-bottom: 5px; color: var(--text); }
.required { color: var(--danger); }
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 7px 10px;
  font-size: var(--text-sm);
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,53,69,0.15); }
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; display: block; }
.invalid-feedback { font-size: 0.8rem; color: var(--danger); margin-top: 3px; display: none; }
.is-invalid + .invalid-feedback, .is-invalid ~ .invalid-feedback { display: block; }
textarea.form-control { resize: vertical; }

/* ---- INPUT GROUP ---- */
.input-group { display: flex; }
.input-group .form-control { flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text {
  padding: 6px 10px;
  font-size: 0.8125rem;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text-muted);
  white-space: nowrap;
}
.input-group .form-control:not(:first-child) { border-radius: 0; }
.input-group .form-control:not(:last-child) { border-right: 0; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  line-height: 1;
}
.badge-primary { background: var(--primary); color: white; }
.badge-secondary { background: var(--secondary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-danger { background: var(--danger); color: white; }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-info { background: var(--info); color: var(--dark); }
.badge-light { background: #f8f9fa; color: var(--dark); border: 1px solid var(--border); }
.badge-dark { background: var(--dark); color: white; }

/* ---- ALERTS ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}
.alert-heading { font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.alert-danger { background: #f8d7da; border-color: #f5c2c7; color: #842029; }
.alert-success { background: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.alert-warning { background: #fff3cd; border-color: #ffecb5; color: #664d03; }
.alert-info { background: #cff4fc; border-color: #b6effb; color: #055160; }
.alert-dismissible { padding-right: 40px; }
.alert-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  color: inherit;
}
.alert-close:hover { opacity: 1; }

/* ---- ACCORDION ---- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.accordion-header {
  background: var(--bg-white);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
  transition: background var(--transition);
}
.accordion-header:hover { background: #f8f9fa; }
.accordion-header.open { background: #f8f9fa; border-bottom: 1px solid var(--border); }
.accordion-header-content { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.accordion-chevron { width: 16px; height: 16px; transition: transform var(--transition); flex-shrink: 0; }
.accordion-header.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 16px; display: none; }
.accordion-body.open { display: block; }

/* ---- TABLE ---- */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead tr { background: var(--dark); color: white; }
thead th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:hover { background: rgba(0,0,0,0.02); }
.row-parent { background: #fff8e1; font-weight: 600; }
.row-parent:hover { background: #fff3cc; }
td code { font-size: 0.8rem; background: #f8f9fa; padding: 1px 5px; border-radius: 3px; }
.text-nowrap { white-space: nowrap; }
.text-end { text-align: right; }

/* ---- SPINNER ---- */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
.spinner-dark { border-color: rgba(0,0,0,0.2); border-top-color: var(--dark); }
.spinner-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- GRID ---- */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col { flex: 1; padding: 0 8px; min-width: 0; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 8px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 8px; }
.col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; padding: 0 8px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; padding: 0 8px; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 8px; }
.col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; padding: 0 8px; }

/* ---- UTILITIES ---- */
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-auto { margin-left: auto; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.d-flex { display: flex; }
.d-none { display: none; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-grow-1 { flex: 1; min-width: 0; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.small { font-size: 0.875em; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-white { color: white; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.w-100 { width: 100%; }
.pe-3 { padding-right: 12px; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
code { font-size: 0.85em; background: #f8f9fa; padding: 1px 5px; border-radius: 3px; color: #d63384; }
pre code { background: none; padding: 0; color: inherit; }
ol { padding-left: 20px; }
ol li { margin-bottom: 6px; }

/* ---- AUTH PAGE ---- */
.auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card { max-width: 440px; width: 100%; }
.auth-title { text-align: center; margin-bottom: 24px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.auth-features { color: rgba(255,255,255,0.7); }
.auth-feature { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.875rem; }

/* ---- PRODUCT TYPE BUTTONS ---- */
.product-type-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---- COLOR/SIZE BADGES ---- */
.color-badge, .size-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.color-badge { background: var(--primary); color: white; }
.size-badge { background: var(--info); color: var(--dark); }
.badge-remove {
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
  font-size: 1.1em;
  margin-left: 2px;
}
.badge-remove:hover { opacity: 1; }
.color-abbrev { font-size: 0.75em; opacity: 0.8; }

/* ---- IMAGE UPLOADER ---- */
.image-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  margin-bottom: 8px;
}
.image-uploader-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.image-uploader-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-uploader-info { flex: 1; min-width: 0; }
.image-uploader-label { font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.image-uploader-filename { font-size: 0.8rem; color: var(--text-muted); }
.image-uploader-status { font-size: 0.8rem; color: var(--success); }
.upload-error { font-size: 0.8rem; color: var(--danger); margin-top: 3px; }

/* ---- PRE / CODE BLOCKS ---- */
.code-block {
  background: var(--dark);
  color: #4ade80;
  padding: 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.8rem;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
}
.code-block .uploaded { color: #67e8f9; }
.sku-preview {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.8rem;
  max-height: 250px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre;
  line-height: 1.6;
}
.sku-parent { font-weight: 700; color: #e0a800; }

/* ---- PROGRESS BAR ---- */
.progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.3s; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.15s ease;
}
@keyframes modal-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-weight: 700; font-size: 1rem; }
.modal-header.bg-danger { background: var(--danger); color: white; }
.modal-header.bg-danger .modal-close { color: white; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; opacity: 0.7; line-height: 1; color: inherit; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ---- TOAST ---- */
.toast-container {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  width: 100%;
}
.toast {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slide-in 0.2s ease;
  border-left: 4px solid var(--primary);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
@keyframes slide-in { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 2px; }
.toast-body { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- SUMMARY SIDEBAR ---- */
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: var(--text-sm); }
.summary-result { font-size: 0.8rem; margin-bottom: 4px; }

/* ---- MAIN CONTENT AREA ---- */
.main-content { padding: 24px 0; flex: 1; }
.main-grid { display: flex; gap: 24px; align-items: flex-start; }
.main-col-left { flex: 1; min-width: 0; }
.main-col-right { width: 320px; flex-shrink: 0; }

/* ---- DESIGN ACTIONS ---- */
.design-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.section-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); text-align: center; padding: 16px; font-size: 0.8125rem; margin-top: auto; }

/* ---- LOADING OVERLAY ---- */
.loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0; gap: 12px; color: var(--text-muted); }

/* ---- HISTORY PAGE ---- */
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 16px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .main-grid { flex-direction: column; }
  .main-col-right { width: 100%; }
  .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-8 { flex: 0 0 100%; max-width: 100%; }
  .col-lg-4, .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
  .auth-features { display: none; }
  .navbar-brand span:not(.navbar-badge) { display: none; }
  .text-truncate { max-width: 160px; }
}
@media (max-width: 991px) {
  .col-lg-4, .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
}

/* ---- MISC ---- */
.min-vh-100 { min-height: 100vh; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }
.p-4 { padding: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.rounded { border-radius: var(--radius); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.border { border: 1px solid var(--border); }
.border-0 { border: none !important; }
.overflow-hidden { overflow: hidden; }
.bg-light { background: var(--bg); }
.bg-white { background: var(--bg-white); }
.bg-dark { background: var(--dark); }
.bg-warning { background: var(--warning); }
.fs-5 { font-size: 1.15rem; }
.fs-6 { font-size: 1rem; }
.h4 { font-size: 1.4rem; font-weight: 700; }
.ps-3 { padding-left: 16px; }
.opacity-75 { opacity: 0.75; }
.align-middle { vertical-align: middle; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* Fix for input group with btn-outline-danger on right */
.img-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.img-row .input-group { flex: 1; }
.img-row .input-group .form-control:not(:last-child) { border-right: 0; }
.img-row .image-uploader-compact { flex-shrink: 0; }

/* Ensure nested accordions look clean */
.accordion-nested .accordion-item { box-shadow: none; }
.accordion-nested .accordion-header { background: #fafafa; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #198754;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

