/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom palette */
:root {
  /* Existing */
  --nav-bg: #1e3a5f;
  --hero-from: #1a3355;
  --hero-to: #2d5a8e;
  --footer-bg: #1e3a5f;
  --accent: #4a90d9;

  /* Refined grays (Slate scale) */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Status colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);

  /* Spacing rhythm */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-bg: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --sidebar-hover-bg: rgba(255,255,255,0.06);
  --sidebar-active-bg: rgba(74,144,217,0.15);
  --sidebar-border: rgba(255,255,255,0.06);
  --sidebar-group-text: #64748b;
  --topbar-height: 56px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */

.navbar-custom {
  background: var(--nav-bg);
  padding: 0.65rem 0;
}

.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.navbar-custom .nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1rem;
  transition: color 0.15s ease;
}

.navbar-custom .nav-link:hover {
  color: #ffffff;
}

/* ===== HERO SECTION ===== */

.hero-section {
  position: relative;
  min-height: 92vh;
  background: url('../images/worldmap.svg') center center / cover no-repeat;
  background-color: var(--hero-from);
  padding: 5rem 0 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 40, 70, 0.92), rgba(35, 70, 120, 0.85));
}

.hero-section .z-1 {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(74,144,217,0.15);
  border: 1px solid rgba(74,144,217,0.3);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
}

.hero-cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
}

.hero-cta-primary:hover {
  background: #3a7bc8;
  border-color: #3a7bc8;
}

.hero-cta-secondary {
  font-weight: 500;
  padding: 0.75rem 1.75rem;
}

.hero-stats {
  padding-top: 0.5rem;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* Hero visual card (right side) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-visual-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: 500;
}

.hero-visual-row i {
  font-size: 1.1rem;
  color: var(--accent);
}

/* ===== TRUST BAR ===== */

.trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-bar-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.trust-bar-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-logo i {
  font-size: 1.1rem;
}

/* ===== SHARED SECTION STYLES ===== */

.section-features,
.section-industries,
.section-how-it-works {
  padding: 5rem 0;
}

.section-industries {
  background: var(--bg-page);
}

.section-header {
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FEATURE CARDS ===== */

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== INDUSTRY CARDS ===== */

.industry-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.industry-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(74,144,217,0.1);
}

.industry-card i {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== HOW IT WORKS ===== */

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-card-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA SECTION ===== */

.section-cta {
  padding: 5rem 0;
  background: var(--bg-page);
}

.cta-card {
  background: linear-gradient(135deg, #1a3355, #2d5a8e);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-btn-primary {
  font-weight: 600;
  padding: 0.75rem 2rem;
  color: var(--text-primary);
}

.cta-btn-primary:hover {
  color: var(--text-primary);
  background: #f0f0f0;
}

.cta-btn-secondary {
  font-weight: 500;
  padding: 0.75rem 2rem;
}

/* ===== FOOTER ===== */

.footer-custom {
  background: var(--footer-bg);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-social {
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: color 0.15s ease;
  text-decoration: none;
}

.footer-social:hover {
  color: #ffffff;
}

/* Global card transition (non-dashboard pages) */
.card {
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .bi {
  color: var(--accent) !important;
}

/* Signup modal step indicators */
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  display: inline-block;
  transition: background 0.2s ease;
}

.step-dot.active {
  background: var(--accent);
}

.step-dot.completed {
  background: var(--color-success);
}

/* Department rows */
.dept-row .form-control-sm {
  min-width: 0;
}

.dept-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== DASHBOARD ===== */

.dashboard-bg {
  background: var(--bg-page);
  min-height: 100vh;
}

/* Dashboard cards — no border, shadow, rounded */
#dashMainContent .card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease;
}

#dashMainContent .card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-fallback img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== STAT CARDS ===== */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.stat-card-label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-card-value {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== STAT CARD ICON COLORS ===== */

.stat-icon-primary { background: rgba(74,144,217,0.1); color: #4a90d9; }
.stat-icon-success { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-icon-warning { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-icon-danger  { background: rgba(239,68,68,0.1);  color: #ef4444; }
.stat-icon-info    { background: rgba(59,130,246,0.1);  color: #3b82f6; }

/* ===== UNIFIED TABLE STYLES ===== */

.table-scheduling thead th,
.table-requests thead th,
.table-products thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
  padding: 0.75rem 1rem;
  background: transparent;
}

.table-scheduling tbody td,
.table-requests tbody td,
.table-products tbody td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.table-scheduling tbody tr:hover,
.table-requests tbody tr:hover,
.table-products tbody tr:hover {
  background: #f8fafc;
}

.table-scheduling tbody tr:last-child td,
.table-requests tbody tr:last-child td,
.table-products tbody tr:last-child td {
  border-bottom: none;
}

.table-products th.sortable {
  cursor: pointer;
  user-select: none;
}

.table-products th.sortable:hover {
  color: var(--accent);
}

.table-products .product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.table-products .product-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== STATUS BADGES ===== */

.badge-pending   { background: rgba(245,158,11,0.1);  color: #d97706; }
.badge-processing { background: rgba(59,130,246,0.1); color: #2563eb; }
.badge-completed { background: rgba(16,185,129,0.1);  color: #059669; }
.badge-rejected  { background: rgba(239,68,68,0.1);   color: #dc2626; }

.badge-stock-out {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  font-size: 0.7rem;
}

/* ===== SECTION HEADERS ===== */

.card-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Legacy stat-value / stat-label (kept for any remaining usage) */
.order-analytics .stat-value,
.rental-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.order-analytics .stat-label,
.rental-stats .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}

/* Dashboard department cards */
#departmentsList .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

#departmentsList .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Scheduling section headers */
#workingHoursGrid .day-row {
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
}

#workingHoursGrid .day-row:last-child {
  border-bottom: none;
}

#schedulingSection .card-body > h6,
#page-staff .card-body > h6,
#page-schedule .card-body > h6,
#page-resources .card-body > h6 {
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
}

/* ===== EMPTY STATES ===== */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state > i {
  font-size: 2.5rem;
  color: var(--border-medium);
  margin-bottom: 0.75rem;
  display: block;
}

.empty-state > h6 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.empty-state > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== AGENT PUBLIC PAGE ===== */

/* Service cards */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15);
}

.service-card-img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

/* Week calendar day buttons */
.day-btn {
  min-width: 72px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  padding: 0.5rem 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.day-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: #f0f6ff;
}

.day-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.day-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.day-btn .day-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.day-btn .day-number {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Time slot buttons */
.slot-btn {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: center;
  min-width: 110px;
}

.slot-btn:hover {
  border-color: var(--accent);
  background: #f0f6ff;
}

.slot-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== DASHBOARD TOP BAR ===== */

.dash-topbar {
  position: sticky;
  top: 56px;
  z-index: 1030;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.dash-topbar #profileName {
  font-size: var(--text-md);
  color: var(--text-primary);
}

.dash-topbar #profileSegment {
  border-radius: 20px;
  font-weight: 500;
}

.dash-topbar #btnEditAgent {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.dash-topbar #btnEditAgent:hover {
  color: var(--accent);
  background: rgba(74,144,217,0.08);
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

#btnToggleSidebar {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  padding: 0.25rem;
  cursor: pointer;
}

/* ===== DASHBOARD LAYOUT ===== */

.dash-layout {
  display: flex;
  min-height: calc(100vh - 56px - var(--topbar-height));
}

/* ===== SIDEBAR NAVIGATION ===== */

.dash-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: sticky;
  top: calc(56px + var(--topbar-height));
  height: calc(100vh - 56px - var(--topbar-height));
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 1020;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.dash-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dash-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.dash-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem;
}

.dash-nav-group {
  margin-top: 1.25rem;
}

.dash-nav-group:first-child {
  margin-top: 0;
}

.dash-nav-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sidebar-group-text);
  padding: 0.5rem 0.75rem 0.35rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dash-nav-item:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-active);
  text-decoration: none;
}

.dash-nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
}

.dash-nav-item .bi {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT AREA ===== */

.dash-main {
  flex: 1;
  background: var(--bg-page);
  padding: 1.5rem 2rem;
  min-width: 0;
}

.dash-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dash-page-header h4 {
  font-size: var(--text-lg);
  color: var(--text-primary);
}

/* ===== SIDEBAR BACKDROP (mobile) ===== */

.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1019;
}

/* ===== SKELETON LOADING ===== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-row {
  height: 48px;
  margin-bottom: 0.5rem;
}

/* ===== MODAL POLISH ===== */

.modal-content {
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-size: var(--text-md);
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
}

/* ===== FORM REFINEMENTS (dashboard) ===== */

#dashMainContent .form-control,
#dashMainContent .form-select {
  font-size: var(--text-base);
  border-color: var(--border-light);
  border-radius: var(--radius-sm);
}

#dashMainContent .form-control:focus,
#dashMainContent .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}

#dashMainContent .form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== BADGE & BUTTON REFINEMENTS ===== */

.badge {
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 20px;
  padding: 0.3em 0.65em;
}

#dashMainContent .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 500;
}

#dashMainContent .btn-outline-secondary {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

/* ===== TOAST CONTAINER ===== */

.toast-container {
  z-index: 1090;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    min-height: auto;
    padding: 4rem 0 3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-features,
  .section-industries,
  .section-how-it-works {
    padding: 3.5rem 0;
  }
  .section-cta {
    padding: 3.5rem 0;
  }
  .cta-card {
    padding: 3rem 1.5rem;
  }
  .cta-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .dash-sidebar {
    position: fixed;
    top: calc(56px + var(--topbar-height));
    left: 0;
    height: calc(100vh - 56px - var(--topbar-height));
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1040;
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-sidebar-backdrop.open {
    display: block;
  }
  #btnToggleSidebar {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
  }
  .dash-main {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-section {
    padding: 3rem 0 2.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-stat-divider {
    display: none;
  }
  .trust-bar-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .trust-bar-logos {
    justify-content: center;
  }
  .industry-card {
    font-size: var(--text-xs);
    padding: 0.75rem;
  }
  .industry-card i {
    font-size: 1rem;
  }
  .section-features,
  .section-industries,
  .section-how-it-works {
    padding: 2.5rem 0;
  }
  .section-cta {
    padding: 2.5rem 0;
  }
  .cta-card {
    padding: 2.5rem 1rem;
  }
  .avatar-fallback {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-card-value {
    font-size: 1.2rem;
  }
  .stat-card-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .order-analytics .stat-value,
  .rental-stats .stat-value {
    font-size: 1.2rem;
  }
  .day-btn {
    min-width: 56px;
    padding: 0.4rem 0.15rem;
  }
  .day-btn .day-number {
    font-size: 0.95rem;
  }
  .service-card-img {
    height: 120px;
  }
  .slot-btn {
    min-width: 90px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  .empty-state {
    padding: 2rem 1rem;
  }
  .empty-state > i {
    font-size: 2rem;
  }
  .dash-main {
    padding: 0.75rem;
  }
}

@media (min-width: 992px) {
  #btnToggleSidebar {
    display: none;
  }
}

/* ── Notification Bell Dropdown ── */
#notifWrapper {
  position: relative;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
.notif-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.notif-body {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}
.notif-item {
  display: block;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  text-decoration: none;
  color: var(--text-primary, #1e293b);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: var(--bg-page, #f1f5f9);
}
.notif-item.unread {
  background: #eff6ff;
}
.notif-item.unread:hover {
  background: #dbeafe;
}
.notif-item-subject {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.3;
}
.notif-item-body {
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}
@media (max-width: 576px) {
  .notif-dropdown {
    width: 290px;
    right: -40px;
  }
}
