/* ============================================
   BAGS — Design System 2025
   ============================================ */

/* --- Tokens --- */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --primary-soft: #c7d2fe;

  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: rgba(255,255,255,.08);
  --bg-sidebar-active: rgba(99,102,241,.25);

  --text: #1e293b;
  --text-secondary: #64748b;
  --text-sidebar: #94a3b8;
  --text-sidebar-active: #ffffff;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sidebar-w: 260px;
  --topbar-h: 64px;

  --transition: 150ms ease;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-brand i {
  font-size: 24px;
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.sidebar-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.3);
  padding: 16px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.sidebar-link:hover {
  color: #fff;
  background: var(--bg-sidebar-hover);
}

.sidebar-link.active {
  color: var(--text-sidebar-active);
  background: var(--bg-sidebar-active);
}

.sidebar-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  opacity: .75;
}

.sidebar-link.active i { opacity: 1; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.sidebar-user-btn {
  background: none;
  border: none;
  color: var(--text-sidebar);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.sidebar-user-btn:hover {
  color: #fff;
  background: var(--bg-sidebar-hover);
}

/* --- Main wrapper --- */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Topbar --- */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1020;
  gap: 16px;
}

.topbar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Main content --- */
.main-content {
  flex: 1;
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

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

.sidebar-overlay.active { display: block; }

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .topbar-toggle {
    display: flex;
  }
  .main-content {
    padding: 16px;
  }
}

/* =====================
   COMPONENTS
   ===================== */

/* --- Page header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title i {
  color: var(--primary);
  font-size: 22px;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header i {
  color: var(--text-secondary);
  margin-right: 6px;
}

.card-body {
  padding: 20px;
}

.card-body.p-0 { padding: 0; }

/* Stat cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.stat-icon.blue  { background: var(--info-light); color: var(--info); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.red   { background: var(--danger-light); color: var(--danger); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.purple { background: var(--primary-light); color: var(--primary); }

/* --- Tables --- */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table-modern thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-modern tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.table-modern tbody tr {
  transition: background var(--transition);
}

.table-modern tbody tr:hover {
  background: var(--border-light);
}

.table-modern tbody tr.row-muted {
  opacity: .55;
}

.table-modern tbody tr.row-success {
  background: var(--success-light);
}

.table-modern tbody tr.row-warning {
  background: var(--warning-light);
}

.table-modern tbody tr.row-danger {
  background: var(--danger-light);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-success   { background: var(--success-light); color: #065f46; }
.badge-warning   { background: var(--warning-light); color: #92400e; }
.badge-danger    { background: var(--danger-light); color: #991b1b; }
.badge-info      { background: var(--info-light); color: #1e40af; }
.badge-muted     { background: var(--border-light); color: var(--text-secondary); }

.badge-risk-OK     { background: var(--success-light); color: #065f46; }
.badge-risk-LOW    { background: var(--info-light); color: #1e40af; }
.badge-risk-MEDIUM { background: var(--warning-light); color: #92400e; }
.badge-risk-HIGH   { background: var(--danger-light); color: #991b1b; }

.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn i { font-size: 16px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.35);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--border-light);
  border-color: #cbd5e1;
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover {
  background: #059669;
  box-shadow: 0 2px 8px rgba(16,185,129,.35);
  color: #fff;
}

.btn-danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--border);
}
.btn-danger:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}

.btn-warning {
  background: var(--warning-light);
  color: #92400e;
  border-color: var(--warning);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12.5px;
}
.btn-sm i { font-size: 14px; }

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 30px; height: 30px;
}

/* --- Forms --- */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label small {
  font-weight: 400;
  color: var(--text-secondary);
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  outline: none;
}

.form-control-lg {
  padding: 12px 16px;
  font-size: 16px;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-check-input {
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* --- Modals --- */
.modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

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

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: toastIn .3s ease;
  border-left: 4px solid var(--text-secondary);
}

.toast-item.toast-success { border-left-color: var(--success); }
.toast-item.toast-error   { border-left-color: var(--danger); }
.toast-item.toast-warning { border-left-color: var(--warning); }
.toast-item.toast-info    { border-left-color: var(--info); }

.toast-item i {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-item.toast-success i { color: var(--success); }
.toast-item.toast-error i   { color: var(--danger); }
.toast-item.toast-warning i { color: var(--warning); }
.toast-item.toast-info i    { color: var(--info); }

.toast-msg { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px;
  font-size: 18px;
  line-height: 1;
  opacity: .5;
}
.toast-close:hover { opacity: 1; }

.toast-item.removing {
  animation: toastOut .25s ease forwards;
}

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

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

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.empty-state p {
  font-size: 13.5px;
  margin: 0 0 16px;
}

/* --- Scan input (conferência) --- */
.scan-wrapper {
  position: sticky;
  top: var(--topbar-h);
  z-index: 10;
  background: var(--bg);
  padding: 16px 0;
}

.scan-field {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.scan-field:focus-within {
  box-shadow: 0 0 0 4px rgba(99,102,241,.25);
}

.scan-field-icon {
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
}

.scan-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: .5px;
  color: var(--text);
  background: transparent;
}

.scan-field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.scan-field-count {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* --- Progress --- */
.progress-bar-modern {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-modern .fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width .4s ease;
}

/* --- Result tabs --- */
.result-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.result-tab {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-tab:hover {
  color: var(--text);
}

.result-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- Qty controls --- */
.qty-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 32px; height: 32px;
  border: none;
  background: var(--border-light);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-input {
  width: 48px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  padding: 4px 0;
}

/* --- Conf session info bar --- */
.session-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.session-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.session-bar-item .label {
  color: var(--text-secondary);
  font-weight: 500;
}

.session-bar-item .value {
  font-weight: 700;
  color: var(--text);
}

/* --- Code tag --- */
code {
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--border-light);
  color: var(--primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Filter bar --- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-bar .form-control,
.filter-bar .form-select {
  max-width: 240px;
}

/* --- Animations --- */
.scan-flash {
  animation: scanFlash .6s ease;
}

@keyframes scanFlash {
  0%   { background: var(--success-light); }
  100% { background: transparent; }
}

/* --- SKU scan hint --- */
#skuScanHint span {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Pagination --- */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* --- Accordion overrides --- */
.accordion-button {
  font-weight: 600;
  font-size: 14px;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary);
}

/* --- Task severity inline --- */
.task-severity-high { color: var(--danger); font-weight: 700; }
.task-severity-medium { color: var(--warning); font-weight: 600; }
.task-severity-low { color: var(--info); }

/* --- Role badge --- */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.role-badge-admin {
  background: var(--primary-light);
  color: var(--primary);
}

.role-badge-operador {
  background: var(--border-light);
  color: var(--text-secondary);
}

/* --- Print --- */
@media print {
  .sidebar, .topbar, .no-print, .toast-container, .filter-bar, .page-actions { display: none !important; }
  .main-wrapper { margin-left: 0 !important; }
  .main-content { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* --- Tablet adjustments --- */
@media (min-width: 768px) and (max-width: 1023.98px) {
  :root {
    --sidebar-w: 220px;
  }
  .main-content {
    padding: 20px;
  }
}

/* --- User modal --- */
.user-modal-body {
  text-align: center;
  padding: 32px 24px;
}

.user-modal-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

/* --- Skeleton loader --- */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #e2e8f0 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-card {
  height: 100px;
}

/* ========== STOCK MODULE ========== */

/* --- Module cards (home) --- */
.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
}

.module-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text);
}

.module-card-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}

.module-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.module-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
}

/* --- Movement type selector --- */
.movement-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.movement-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all .15s ease;
}

.movement-type-btn i {
  font-size: 24px;
}

.movement-type-btn:hover {
  border-color: var(--primary-soft);
  color: var(--text);
}

.movement-type-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

@media (max-width: 767.98px) {
  .movement-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
