/* ShiftTrack - PRO SaaS UI (Bootstrap 5 compatible) */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);

  --shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);

  --radius: 16px;
  --radius-sm: 12px;
}

html,
body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* utilities */
.fw-black {
  font-weight: 900 !important;
}
.text-muted {
  color: var(--muted) !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-main {
  flex: 1;
  max-width: 1100px;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Navbar */
.app-navbar {
  background: #0b1220 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}
.badge-app {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 850;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
}
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 650;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-btn{
  color: white;
}

/* Footer */
.app-footer {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Surfaces */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.surface-lg {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.badge-soft {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.65rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

/* Buttons */
.btn {
  border-radius: 14px;
  font-weight: 750;
  padding: 0.6rem 0.95rem;
}

.btn-lg {
  padding: 0.78rem 1.1rem;
  border-radius: 16px;
}

.btn-warning {
  font-weight: 850;
}

/* Alerts */
.alert {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Landing hero */
.landing-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(255, 193, 7, 0.1)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.landing-hero .landing-inner {
  padding: 2.25rem;
}

@media (max-width: 576px) {
  .landing-hero .landing-inner {
    padding: 1.25rem;
  }
}

.landing-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.landing-subtitle {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Feature cards */
.feature-card {
  height: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem 1.1rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: rgba(13, 110, 253, 0.95);
  margin-bottom: 0.75rem;
}

.feature-title {
  font-weight: 900;
  margin-bottom: 0.15rem;
}

.feature-text {
  color: var(--muted);
  margin: 0;
}

/* Restaurant selection panel */
.restaurant-panel {
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.restaurant-panel .panel-inner {
  padding: 1.75rem;
}

@media (max-width: 576px) {
  .restaurant-panel .panel-inner {
    padding: 1.15rem;
  }
}

.restaurant-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.restaurant-option:hover {
  background: rgba(13, 110, 253, 0.04);
  border-color: rgba(13, 110, 253, 0.18);
  transform: translateY(-1px);
}

.restaurant-option .name {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.restaurant-option .addr {
  color: var(--muted);
  font-size: 0.95rem;
}

.restaurant-option input[type="radio"] {
  margin-top: 0.25rem;
  transform: scale(1.08);
}

.restaurant-option:has(input[type="radio"]:checked) {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.1);
}

.helper-text {
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.95rem;
}

/* Auth pages */
.auth-page {
  padding: 3rem 0;
}

.auth-card {
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* Dashboard metric cards */
.metric-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

/* Progress polish */
.progress {
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  border-radius: 999px;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob-1 {
  width: 320px;
  height: 320px;
  top: -100px;
  right: -90px;
  background: #ffc107;
}
.hero-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -110px;
  left: -90px;
  background: #0d6efd;
  opacity: 0.18;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .app-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-title {
    font-size: 1.35rem;
  }
  .navbar .nav-link {
    border-radius: 12px;
  }
}

/* Page header (SaaS style) */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(255, 193, 7, 0.1)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}
.page-hero .inner {
  padding: 1.5rem;
}
@media (min-width: 992px) {
  .page-hero .inner {
    padding: 1.9rem;
  }
}
.hero-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}
.hero-subtitle {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob-1 {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -90px;
  background: #ffc107;
}
.hero-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -120px;
  left: -90px;
  background: #0d6efd;
  opacity: 0.18;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.65rem 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}
.form-label {
  margin-bottom: 0.35rem;
  font-weight: 750;
}
.form-text {
  color: rgba(15, 23, 42, 0.55);
}
.is-invalid {
  border-color: rgba(220, 53, 69, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12) !important;
}

/* Buttons */
.btn {
  border-radius: 14px;
  font-weight: 780;
  padding: 0.6rem 0.95rem;
}
.btn-lg {
  padding: 0.78rem 1.1rem;
  border-radius: 16px;
}
.btn-warning {
  font-weight: 900;
}

/* Tables */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.table thead th {
  background: rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.8);
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover {
  background: rgba(13, 110, 253, 0.04);
}
.table td {
  vertical-align: middle;
}

/* Avatars */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.85);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
  border-radius: var(--radius);
}
.filter-bar .grow {
  flex: 1;
  min-width: 220px;
}

/* Empty state */
.empty {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.7);
}
.empty .icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: rgba(13, 110, 253, 0.95);
  margin-bottom: 0.6rem;
}

/* Cards */
.kpi {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
}
.kpi .value {
  font-size: 1.9rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

hr {
  border-color: rgba(15, 23, 42, 0.1);
}
.progress {
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  border-radius: 999px;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .app-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar .nav-link {
    border-radius: 12px;
  }
}

/* Entries: mode toggle + weekday chips */
.mode-toggle {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.02);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.mode-pill input {
  display: none;
}

.mode-pill:has(input:checked) {
  border-color: rgba(13, 110, 253, 0.3);
  background: rgba(13, 110, 253, 0.08);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.1);
}

.weekday-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
}

.weekday-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  font-weight: 850;
}

.weekday-chip input {
  display: none;
}

.weekday-chip:has(input:checked) {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.4);
}

.is-invalid-soft {
  border-color: rgba(220, 53, 69, 0.4) !important;
}

.worker-filter {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.worker-filter .tiny {
  font-size: 0.78rem;
}

.worker-filter .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.06);
}

.worker-filter .filter-form .form-control {
  border-radius: 12px;
}
.worker-filter .filter-form .btn {
  border-radius: 12px;
  white-space: nowrap;
}

.month-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stat-box {
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

@media (max-width: 576px) {
  .month-stats {
    grid-template-columns: 1fr;
  }
}

/* Timesheet actions + signature pad */
.timesheet-actions .alert {
  border-radius: 14px;
}

.signature-box {
  border: 2px dashed rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  overflow: hidden;
}

.signature-box canvas {
  width: 100%;
  height: 240px;
  display: block;
  background: #fff;
  cursor: crosshair;
}


/* ===== ShiftTrack Flow UI (Landing + Role + Panels) ===== */

.fw-black { font-weight: 800; }

.section-kicker{
  display:inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: .5rem;
}

.section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle{
  max-width: 56ch;
  margin: 0 auto;
}

/* Landing polish (works with your existing landing-hero classes) */
.surface{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.badge-app{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.4rem .7rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  padding:.35rem .6rem;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-weight: 600;
  font-size: .85rem;
}

.feature-card{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  padding: 1rem;
  background: #fff;
}

.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  margin-bottom: .75rem;
}

.feature-title{ font-weight: 800; margin-bottom: .25rem; }
.feature-text{ margin: 0; color: rgba(0,0,0,.65); }

/* Role selection */
.role-wrap { max-width: 980px; margin: 0 auto; }
.role-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  overflow: hidden;
}
.role-card-body{ padding: 1.25rem; }
.role-icon{
  width: 54px; height: 54px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.06);
  margin-bottom: .75rem;
  font-size: 1.25rem;
}
.role-icon-soft{ background: rgba(0,0,0,.03); }
.role-steps{ padding-left: 1.1rem; margin: 0; }

/* Select restaurant panel */
.panel-shell{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
  overflow: hidden;
}
.panel-top{ padding: 1.25rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.panel-body{ padding: 1.25rem; }

.restaurant-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.restaurant-option:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  background: rgba(0,0,0,.03);
}
.restaurant-option .name{ font-weight: 800; }
.restaurant-option .addr{ font-size: .9rem; color: rgba(0,0,0,.6); }

/* Stepper */
.stepper{
  display:flex;
  align-items:center;
  gap: .75rem;
  flex-wrap: wrap;
}
.stepper .bar{
  flex: 1;
  min-width: 40px;
  height: 2px;
  background: rgba(0,0,0,.10);
}
.stepper .step{
  display:flex;
  align-items:center;
  gap: .5rem;
}
.stepper .dot{
  width: 28px; height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  font-weight: 800;
  font-size: .85rem;
}
.stepper .label{ font-weight: 700; font-size: .9rem; color: rgba(0,0,0,.70); }
.stepper .step.active .dot{ background: rgba(0,0,0,.10); }

/* Dashboard cards */
.stat-card{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}
.stat-label{ color: rgba(0,0,0,.60); font-weight: 700; font-size: .9rem; }
.stat-value{ font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; }
.stat-small{ font-size: 1.05rem; font-weight: 800; }

.action-card{
  display:flex;
  align-items:center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.action-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
}
.action-card .icon{
  width: 48px; height: 48px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-size: 1.2rem;
}
.action-card .title{ font-weight: 900; }
.action-card .sub{ font-size: .92rem; }
.action-card .chev{ margin-left: auto; opacity: .6; }

/* ===== Admin Auth Header Actions ===== */
.auth-shell{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.07);
  overflow: hidden;
}

.auth-top{
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.015);
}

.auth-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.auth-body{
  padding: 1.25rem;
}

/* Optional small extra polish for user auth pages */
.auth-note{
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: .9rem;
  margin-top: .9rem;
}


/* ===== Admin Dashboard ===== */

.dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.12),
    rgba(255, 193, 7, 0.12)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.dashboard-hero .inner {
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .dashboard-hero .inner {
    padding: 2rem;
  }
}

.dashboard-side-card {
  position: relative;
  z-index: 1;
}

.dashboard-progress {
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
}

.dashboard-progress .progress-bar {
  background: linear-gradient(90deg, #0d6efd, #ffc107);
}

.mini-progress-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.75);
}

.dashboard-kpi-card {
  height: 100%;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-kpi-card .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: #0d6efd;
  font-size: 1.1rem;
}

.dashboard-kpi-card .kpi-label {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.dashboard-kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
}

.dashboard-action-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-action-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-action-item:hover {
  transform: translateY(-1px);
  background: rgba(13, 110, 253, 0.04);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-action-item .action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #8a6500;
}

.dashboard-action-item strong {
  display: block;
  font-weight: 850;
  margin-bottom: 0.1rem;
}

/* ===== Worker Management ===== */

.worker-list-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.worker-card-mini {
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding: 1rem;
}

.worker-card-mini .label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.worker-card-mini .value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 0.2rem;
}

.worker-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.worker-status-pill.active {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.worker-status-pill.inactive {
  background: rgba(108, 117, 125, 0.14);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.2);
}

/* ===== Restaurant Workspace Registration ===== */

.workspace-register-shell {
  max-width: 920px;
  margin: 0 auto;
}

.workspace-register-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .workspace-register-grid {
    grid-template-columns: 1fr;
  }
}

.workspace-card {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.workspace-card-top {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.06),
    rgba(255, 193, 7, 0.08)
  );
}

.workspace-card-body {
  padding: 1.25rem;
}

.workspace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}

.workspace-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.workspace-subtitle {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.workspace-section {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.02);
}

.workspace-section + .workspace-section {
  margin-top: 1rem;
}

.workspace-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 850;
  margin-bottom: 0.9rem;
}

.workspace-section-title .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: #0d6efd;
  flex-shrink: 0;
}

.workspace-form .form-label {
  font-weight: 800;
  margin-bottom: 0.38rem;
}

.workspace-form .form-control,
.workspace-form .form-select {
  min-height: 48px;
}

.workspace-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.workspace-submit {
  min-height: 54px;
  font-weight: 850;
  border-radius: 16px;
}

.workspace-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.workspace-side-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  padding: 1.05rem;
}

.workspace-side-card h3 {
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0.8rem;
}

.workspace-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(15, 23, 42, 0.82);
}

.workspace-checklist .check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.18);
  font-size: 0.82rem;
}

.workspace-mini-stat {
  border-radius: 16px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

.workspace-mini-stat .label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.workspace-mini-stat .value {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.workspace-helper {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.22);
  color: rgba(15, 23, 42, 0.82);
  font-size: 0.93rem;
  line-height: 1.6;
}

.workspace-auth-link {
  font-weight: 700;
  text-decoration: none;
}

.workspace-auth-link:hover {
  text-decoration: underline;
}

/* ==============================
   Premium SaaS Homepage
============================== */

.saas-hero-section {
  position: relative;
  padding: 2rem 0 1rem;
}

.saas-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(13, 110, 253, 0.12), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 193, 7, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(246, 247, 251, 1));
  pointer-events: none;
}

.saas-hero-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.1);
}

@media (min-width: 992px) {
  .saas-hero-card {
    padding: 3rem;
  }
}

.saas-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.saas-hero-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.saas-hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 58ch;
}

.saas-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.saas-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 700;
  font-size: 0.95rem;
}

.saas-hero-proof i {
  color: #198754;
  margin-right: 0.35rem;
}

.saas-preview-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.saas-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.saas-window-dots {
  display: flex;
  gap: 0.4rem;
}

.saas-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.saas-mini-stat {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.saas-mini-stat .label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.saas-mini-stat .value {
  font-size: 1.8rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.saas-chart-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.saas-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 150px;
  padding-top: 0.75rem;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.bar-group span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.bar-group .bar {
  width: 100%;
  max-width: 46px;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, #0d6efd, #7ab8ff);
  min-height: 36px;
}

.bar-group .bar.h-50 { height: 50px; }
.bar-group .bar.h-60 { height: 60px; }
.bar-group .bar.h-80 { height: 80px; }
.bar-group .bar.h-95 { height: 95px; }

.saas-shift-list {
  display: grid;
  gap: 0.75rem;
}

.saas-shift-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.saas-brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.saas-brand-strip span {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  font-weight: 700;
  color: rgba(15, 23, 42, 0.76);
}

.saas-feature-card {
  border-radius: 20px;
  padding: 1.3rem;
}

.saas-workflow-card {
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff, rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

.saas-flow-steps {
  display: grid;
  gap: 0.9rem;
}

.saas-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.saas-flow-step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  flex-shrink: 0;
}

.saas-ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.saas-ui-card {
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.saas-ui-card-wide {
  grid-column: 1 / -1;
}

.saas-ui-card .title {
  font-weight: 850;
  margin-bottom: 0.65rem;
}

.saas-ui-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.pricing-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.pricing-card-featured {
  border-color: rgba(13, 110, 253, 0.22);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.12);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-plan {
  font-size: 1.1rem;
  font-weight: 850;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
  margin-left: 0.25rem;
}

.pricing-text {
  color: var(--muted);
  line-height: 1.7;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.pricing-list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #198754;
  font-weight: 900;
}

.final-cta-card {
  padding: 2.2rem;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(255, 193, 7, 0.12)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

@media (max-width: 991.98px) {
  .saas-ui-grid {
    grid-template-columns: 1fr;
  }

  .saas-ui-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 576px) {
  .saas-hero-card,
  .saas-workflow-card,
  .final-cta-card {
    padding: 1.25rem;
  }

  .saas-shift-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================
   Premium Navbar + Footer
============================== */

.app-navbar-premium {
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.app-brand {
  text-decoration: none;
}

.brand-mark-premium {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #0d6efd, #6ea8fe);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.28);
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.app-navbar-premium .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: all 0.2s ease;
}

.app-navbar-premium .nav-link:hover,
.app-navbar-premium .nav-link.active {
  color: #fff;
}

.app-navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
}

.app-btn-premium {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8c146, #ffd978);
  color: #1b1b1b;
  box-shadow: 0 12px 24px rgba(248, 193, 70, 0.22);
}

.app-btn-premium:hover {
  color: #111;
  transform: translateY(-1px);
}

.app-btn-ghost {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.app-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-btn-outline-light {
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.app-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-footer-premium {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 24%),
    linear-gradient(180deg, #0f172a, #0b1220);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
}

.footer-brand-title {
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 42ch;
}

.footer-heading {
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links li,
.footer-points li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-points {
  color: rgba(255, 255, 255, 0.75);
}

.footer-points i {
  color: #f8c146;
  margin-right: 0.45rem;
}

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

@media (max-width: 991.98px) {
  .brand-subtitle {
    display: none;
  }

  .app-navbar-premium .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
  }
}

/* =========================
   Worker My Shifts - Premium UI
   ========================= */

.worker-shifts-page {
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(15, 23, 42, 0.08);
  --text-main: #0f172a;
  --text-soft: #64748b;
  --accent-dark: #0f172a;
  --accent-2: #1e293b;
  --accent-soft: #f8fafc;
  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-hover: 0 14px 36px rgba(2, 6, 23, 0.12);
}

.shifts-hero {
  position: relative;
  padding: 1.6rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.shifts-title {
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.shifts-subtitle {
  color: var(--text-soft);
  max-width: 700px;
  font-size: 0.98rem;
}

.shifts-summary-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  height: 100%;
}

.summary-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.summary-month {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.summary-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-metric {
  min-width: 120px;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.metric-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.metric-text {
  display: block;
  font-size: 0.82rem;
  opacity: 0.82;
  margin-top: 0.2rem;
}

.shifts-filter-card,
.shifts-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.filter-control {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: none;
}

.filter-control:focus {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.08);
}

.shifts-filter-btn {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.shifts-filter-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
}

.table-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.shifts-table {
  --bs-table-bg: transparent;
}

.shifts-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  font-weight: 800;
}

.shifts-table tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.shifts-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.85);
}

.shifts-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: middle;
}

.date-cell {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 180px;
}

.date-pill {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.date-day {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.date-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.date-meta {
  display: flex;
  flex-direction: column;
}

.date-full {
  font-weight: 700;
  color: #0f172a;
}

.date-weekday {
  font-size: 0.85rem;
  color: #64748b;
}

.time-badge,
.break-badge,
.hours-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.time-badge {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.break-badge {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.hours-badge {
  background: #ecfeff;
  color: #155e75;
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.note-text {
  max-width: 280px;
  color: #475569;
  line-height: 1.45;
}

.note-empty {
  display: inline-block;
  color: #94a3b8;
  font-style: italic;
}

.empty-shifts-state {
  padding-left: 1rem;
  padding-right: 1rem;
}

.empty-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: #475569;
  font-size: 1.8rem;
}

@media (max-width: 991.98px) {
  .shifts-hero,
  .shifts-filter-card,
  .shifts-table-wrap {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .summary-metrics {
    gap: 0.75rem;
  }

  .summary-metric {
    flex: 1 1 140px;
  }
}

@media (max-width: 767.98px) {
  .date-cell {
    min-width: 150px;
    gap: 0.7rem;
  }

  .date-pill {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .shifts-title {
    font-size: 1.6rem;
  }

  .note-text {
    max-width: 180px;
  }
}


/* =========================
   Worker Dashboard - Premium UI
   ========================= */

.worker-dashboard-page {
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(15, 23, 42, 0.08);
  --text-main: #0f172a;
  --text-soft: #64748b;
  --accent-dark: #0f172a;
  --accent-2: #1e293b;
  --accent-soft: #f8fafc;
  --shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-hover: 0 14px 36px rgba(2, 6, 23, 0.12);
}

.dashboard-hero {
  position: relative;
  padding: 1.6rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.dashboard-title {
  font-size: clamp(1.9rem, 2.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.dashboard-subtitle {
  color: var(--text-soft);
  max-width: 700px;
  font-size: 0.98rem;
}

.dashboard-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  height: 100%;
}

.hero-card-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.3rem;
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-card-stats {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-mini-stat {
  min-width: 130px;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-mini-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-mini-text {
  display: block;
  font-size: 0.82rem;
  opacity: 0.82;
  margin-top: 0.2rem;
}

.dashboard-hero-btn {
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.dashboard-hero-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dashboard-stat-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.1rem;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.stat-primary .stat-icon-wrap {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.stat-accent .stat-icon-wrap {
  background: linear-gradient(135deg, #0891b2 0%, #155e75 100%);
}

.stat-soft .stat-icon-wrap {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.dashboard-stat-label {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.dashboard-stat-value {
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
}

.dashboard-stat-small {
  font-size: 1rem;
}

.dashboard-action-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 23, 42, 0.14);
  color: inherit;
}

.dashboard-action-card-disabled {
  opacity: 0.9;
  cursor: default;
}

.action-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.action-text {
  flex: 1;
}

.action-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.action-sub {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.action-arrow {
  color: #94a3b8;
  font-size: 1rem;
}

.action-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.dashboard-surface-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.surface-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.surface-subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.surface-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #475569;
  line-height: 1.5;
}

.tip-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  margin-top: 0.45rem;
}

.dashboard-focus-card {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.focus-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.focus-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.55rem;
}

.focus-text {
  color: #64748b;
  line-height: 1.55;
}

.dashboard-secondary-btn {
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font-weight: 700;
  border: 0;
  padding: 0.75rem 1rem;
}

.dashboard-secondary-btn:hover {
  color: #fff;
  opacity: 0.96;
}

@media (max-width: 991.98px) {
  .dashboard-hero,
  .dashboard-surface-card,
  .dashboard-stat-card,
  .dashboard-action-card {
    border-radius: 20px;
  }

  .dashboard-hero {
    padding: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-title {
    font-size: 1.65rem;
  }

  .hero-card-stats {
    gap: 0.7rem;
  }

  .hero-mini-stat {
    flex: 1 1 130px;
  }

  .dashboard-stat-value {
    font-size: 1.35rem;
  }

  .dashboard-action-card {
    align-items: flex-start;
  }
}

/* =========================
   Worker Navbar + Footer
   ========================= */

.worker-navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.18);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.worker-brand {
  text-decoration: none;
}

.worker-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #0f172a;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}

.worker-brand-text {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.worker-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.worker-navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.45rem 0.7rem;
}

.worker-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.12);
}

.worker-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 700;
  padding: 0.72rem 1rem !important;
  border-radius: 14px;
  transition: all 0.18s ease;
}

.worker-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.worker-nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.worker-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.worker-user-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.worker-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.worker-logout-btn {
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  padding: 0.72rem 1rem;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.12);
}


.worker-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.worker-footer {
  padding-bottom: 2rem;
}

.worker-footer-card {
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.worker-footer-brand {
  text-decoration: none;
}

.worker-footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.worker-footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.worker-footer-text {
  color: #64748b;
  max-width: 600px;
  line-height: 1.55;
}

.worker-footer-meta {
  color: #0f172a;
  font-weight: 800;
}

.worker-footer-submeta {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

@media (max-width: 991.98px) {
  .worker-navbar .navbar-collapse {
    margin-top: 0.9rem;
    padding-top: 0.5rem;
  }

  .worker-user-pill,
  .worker-logout-btn,
  .worker-nav-link {
    width: 100%;
  }

  .worker-user-pill,.lang-btn {
    margin-top: 0.2rem;
    justify-content: flex-start;
  }

  .worker-logout-btn {
    margin-top: 0.35rem;
  }
}

@media (max-width: 767.98px) {
  .worker-brand-text {
    font-size: 1rem;
  }

  .worker-brand-badge {
    font-size: 0.7rem;
    padding: 0.28rem 0.58rem;
  }

  .worker-footer-card {
    padding: 1.15rem;
    border-radius: 20px;
  }
}

/* =========================
   Admin Sidebar Layout
   ========================= */

/* .admin-layout-body {
  background: #f6f7fb;
}

.admin-app-shell {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar-desktop {
  width: 290px;
  min-width: 290px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.admin-sidebar-top {
  padding: 1.35rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d6efd, #6ea8fe);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.28);
  flex-shrink: 0;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-brand-title {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.admin-brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  margin-top: 0.18rem;
}

.admin-sidebar-body {
  padding: 1rem 0.85rem;
  flex: 1;
}

.admin-sidebar-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
  padding: 0 0.65rem;
  margin-bottom: 0.7rem;
}

.admin-menu {
  display: grid;
  gap: 0.35rem;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.18s ease;
}

.admin-menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-menu-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-menu-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-logout-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.admin-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.admin-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-main-content {
  padding: 1.25rem;
}

@media (min-width: 992px) {
  .admin-main-content {
    padding: 1.5rem 1.6rem;
  }
}

.admin-mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0;
}

.admin-mobile-menu-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.admin-mobile-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-mobile-title {
  color: #fff;
  font-weight: 800;
}

.admin-offcanvas-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  width: 290px !important;
} */

/* =========================
   Admin Sidebar Slide-in Feel
   ========================= */

/* .admin-sidebar-desktop {
  width: 290px;
  min-width: 290px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;

  transform: translateX(0);
  animation: adminSidebarSlideIn 0.45s ease;
  box-shadow: 18px 0 40px rgba(2, 6, 23, 0.16);
}

@keyframes adminSidebarSlideIn {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  animation: adminContentFadeIn 0.45s ease;
}

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


.admin-offcanvas-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  width: 290px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 24px 0 50px rgba(2, 6, 23, 0.28);
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.22s ease;
}

.admin-menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.admin-menu-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-menu-link.active .admin-menu-icon {
  background: linear-gradient(135deg, #0d6efd, #6ea8fe);
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
}


.admin-sidebar-desktop::-webkit-scrollbar,
.admin-offcanvas-sidebar .offcanvas-body::-webkit-scrollbar {
  width: 8px;
}

.admin-sidebar-desktop::-webkit-scrollbar-thumb,
.admin-offcanvas-sidebar .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
 */


/* =========================
   Collapsible Admin Sidebar
   ========================= */

.admin-layout-body {
  background: #f6f7fb;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-desktop-sidebar {
  width: 290px;
  min-width: 290px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1035;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.28s ease, width 0.28s ease, min-width 0.28s ease;
  box-shadow: 18px 0 40px rgba(2, 6, 23, 0.16);
}

.admin-main-wrap {
  flex: 1;
  min-width: 0;
  margin-left: 290px;
  transition: margin-left 0.28s ease;
}

.admin-shell.sidebar-collapsed .admin-desktop-sidebar {
  transform: translateX(-100%);
}

.admin-shell.sidebar-collapsed .admin-main-wrap {
  margin-left: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 76px;
  padding: 1rem 1.35rem;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-sidebar-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-sidebar-toggle-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.admin-topbar-title-wrap {
  min-width: 0;
}

.admin-topbar-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  line-height: 1.15;
}

.admin-topbar-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.admin-main-content {
  padding: 1.35rem;
}

.admin-sidebar {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.admin-sidebar-top {
  padding: 1.35rem 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d6efd, #6ea8fe);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.28);
  flex-shrink: 0;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-brand-title {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.admin-brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  margin-top: 0.18rem;
}

.admin-sidebar-body {
  padding: 1rem 0.85rem;
  flex: 1;
}

.admin-sidebar-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 800;
  padding: 0 0.65rem;
  margin-bottom: 0.7rem;
}

.admin-menu {
  display: grid;
  gap: 0.35rem;
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.18s ease;
}

.admin-menu-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.admin-menu-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-menu-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.admin-menu-link.active .admin-menu-icon {
  background: linear-gradient(135deg, #0d6efd, #6ea8fe);
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-logout-btn {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.admin-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.admin-mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0;
}

.admin-mobile-menu-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.admin-mobile-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-mobile-title {
  color: #fff;
  font-weight: 800;
}

.admin-offcanvas-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  width: 290px !important;
}

.admin-desktop-sidebar::-webkit-scrollbar,
.admin-offcanvas-sidebar .offcanvas-body::-webkit-scrollbar {
  width: 8px;
}

.admin-desktop-sidebar::-webkit-scrollbar-thumb,
.admin-offcanvas-sidebar .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .admin-desktop-sidebar {
    display: none;
  }

  .admin-main-wrap {
    margin-left: 0;
    width: 100%;
  }

  .admin-main-content {
    padding: 1rem;
  }
}

/* =========================
   Admin Settings Page
   ========================= */

.settings-page {
  padding-bottom: 1.25rem;
}

.settings-hero {
  position: relative;
  padding: 1.5rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.settings-title {
  font-size: clamp(1.8rem, 2.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.settings-subtitle {
  color: #64748b;
  max-width: 720px;
  font-size: 0.98rem;
}

.settings-summary-card {
  height: 100%;
  border-radius: 22px;
  padding: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.settings-summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
  margin-bottom: 0.35rem;
}

.settings-summary-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.settings-summary-meta {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.settings-card {
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.settings-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}

.settings-card-text {
  color: #64748b;
  font-size: 0.94rem;
}

.settings-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.settings-input {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.settings-input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.08);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.settings-primary-btn {
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.settings-primary-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.settings-danger-card {
  border-color: rgba(220, 38, 38, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.settings-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.settings-danger-btn {
  min-height: 46px;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  background: #dc2626;
  color: #fff;
  border: 0;
  font-weight: 700;
  opacity: 0.65;
}

.settings-danger-outline-btn {
  min-height: 46px;
  border-radius: 14px;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  font-weight: 700;
  opacity: 0.75;
}

@media (max-width: 991.98px) {
  .settings-hero,
  .settings-card {
    padding: 1.15rem;
    border-radius: 20px;
  }
}

@media (max-width: 767.98px) {
  .settings-title {
    font-size: 1.6rem;
  }

  .settings-summary-name {
    font-size: 1.15rem;
  }

  .settings-primary-btn,
  .settings-danger-btn,
  .settings-danger-outline-btn {
    width: 100%;
  }
}


/* SETTINGS PAGE */
.settings-card {
  border-radius: 1.25rem;
}

.settings-input {
  min-height: 48px;
  border-radius: 0.9rem;
}

.settings-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.settings-card .invalid-feedback {
  display: block;
}

.border-danger-subtle {
  border: 1px solid rgba(220, 53, 69, 0.15);
}

/* =========================================
   ASSIGN SHIFTS PAGE
========================================= */

.assign-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.22s ease;
  min-height: 96px;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
}

.mini-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f1ff, #d9e9ff);
  color: #2563eb;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.mini-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.mini-value {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

/* create button section */
.assign-create-wrap {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.assign-create-text {
  margin: 0;
  color: #64748b;
  font-size: 0.94rem;
}

.assign-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 800;
  font-size: 0.96rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  text-decoration: none;
  transition: all 0.22s ease;
}

.assign-create-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

/* recent shifts */
.recent-shift-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-shift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fbfcfe;
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: all 0.2s ease;
}

.recent-shift-item:hover {
  background: #f5f9ff;
  border-color: rgba(59, 130, 246, 0.2);
}

.recent-shift-main .fw-semibold {
  font-size: 0.95rem;
  color: #0f172a;
}

.recent-shift-main .small {
  font-size: 0.82rem;
}

.surface h2.h5 {
  font-weight: 800;
  color: #0f172a;
}

/* filter polish */
.filter-bar .form-label {
  font-size: 0.87rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.filter-bar .form-control,
.filter-bar .form-select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  box-shadow: none;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* responsive */
@media (max-width: 1199px) {
  .assign-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mini-card {
    padding: 16px;
    border-radius: 16px;
  }

  .assign-create-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .assign-create-btn {
    width: 100%;
    justify-content: center;
  }

  .recent-shift-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==============================
   APPROVALS PAGE
============================== */
.approval-filter-card,
.approval-summary-card {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.approval-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #111827;
  background: linear-gradient(135deg, #f8d66d 0%, #f4b942 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.approval-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.approval-stat {
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.approval-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.approval-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.approval-stat-value-sm {
  font-size: 1rem;
}

.approval-status-box .alert {
  border-radius: 16px;
}

.approval-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.approval-action-row .btn {
  min-width: 160px;
}

.signature-box {
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: 18px;
  padding: 10px;
}

.signature-box canvas {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 991.98px) {
  .approval-stats-grid {
    grid-template-columns: 1fr;
  }

  .approval-action-row {
    flex-direction: column;
  }

  .approval-action-row .btn {
    width: 100%;
  }
}

/* =========================================
   ADMIN RESPONSIVE PATCH
   Add at very bottom of main.css
========================================= */

/* safer media handling */
img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* prevent horizontal overflow */
.admin-main-wrap,
.admin-main-content,
.surface,
.surface-lg,
.table-wrap,
.dashboard-hero,
.settings-hero,
.approval-filter-card,
.approval-summary-card,
.worker-card-mini,
.dashboard-kpi-card {
  min-width: 0;
}

.admin-main-content {
  overflow-x: hidden;
}

/* common responsive buttons/forms */
@media (max-width: 991.98px) {
  .hero-actions,
  .cta-row,
  .settings-actions,
  .settings-danger-actions,
  .approval-action-row,
  .worker-list-topbar {
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-row .btn,
  .settings-actions .btn,
  .settings-danger-actions .btn,
  .approval-action-row .btn {
    width: 100%;
  }

  .filter-bar .grow,
  .worker-filter .filter-form .form-control,
  .worker-filter .filter-form .form-select {
    min-width: 100%;
  }
}

/* topbar + content spacing */
@media (max-width: 767.98px) {
  .admin-topbar {
    padding: 0.85rem 1rem;
    min-height: auto;
  }

  .admin-topbar-title {
    font-size: 1rem;
  }

  .admin-topbar-subtitle {
    font-size: 0.8rem;
  }

  .admin-main-content {
    padding: 0.9rem;
  }
}

/* dashboard */
@media (max-width: 991.98px) {
  .dashboard-hero .inner,
  .dashboard-hero,
  .settings-hero {
    padding: 1.15rem !important;
  }

  .dashboard-kpi-card,
  .worker-card-mini,
  .settings-card,
  .approval-filter-card,
  .approval-summary-card {
    padding: 1rem;
  }

  .dashboard-kpi-card .kpi-value,
  .worker-card-mini .value,
  .kpi .value,
  .metric-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .dashboard-title,
  .settings-title,
  .page-title,
  .hero-title {
    font-size: 1.4rem !important;
    line-height: 1.2;
  }

  .dashboard-subtitle,
  .settings-subtitle,
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .dashboard-hero-card,
  .settings-summary-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .hero-card-title,
  .settings-summary-name {
    font-size: 1.1rem;
  }

  .hero-card-stats,
  .summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero-mini-stat,
  .summary-metric {
    min-width: 0;
    width: 100%;
    padding: 0.75rem;
  }

  .dashboard-stat-card,
  .dashboard-action-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .dashboard-stat-value {
    font-size: 1.2rem;
  }

  .dashboard-action-card {
    gap: 0.8rem;
  }

  .action-icon,
  .stat-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
  }

  .action-title {
    font-size: 0.98rem;
  }

  .action-sub {
    font-size: 0.86rem;
  }
}

@media (max-width: 575.98px) {
  .hero-card-stats,
  .summary-metrics {
    grid-template-columns: 1fr;
  }
}

/* workers */
@media (max-width: 991.98px) {
  .worker-list-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .worker-list-topbar > * {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .worker-card-mini {
    border-radius: 18px;
  }

  .worker-card-mini .value {
    font-size: 1.35rem;
  }

  .worker-status-pill {
    font-size: 0.76rem;
    padding: 0.32rem 0.6rem;
  }

  .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
}

/* tables: workers / shifts / approvals */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap .table {
  min-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .table-wrap {
    border-radius: 16px;
  }

  .table-wrap .table {
    min-width: 680px;
  }

  .table thead th,
  .table td {
    white-space: nowrap;
  }
}

/* shifts page */
@media (max-width: 991.98px) {
  .filter-bar {
    padding: 0.9rem;
  }

  .filter-bar > div,
  .filter-bar > form,
  .filter-bar .grow {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .shifts-hero,
  .shifts-filter-card,
  .shifts-table-wrap {
    padding: 1rem;
    border-radius: 18px;
  }

  .shifts-title {
    font-size: 1.35rem;
  }

  .shifts-subtitle {
    font-size: 0.9rem;
  }

  .date-cell {
    min-width: 140px;
    gap: 0.6rem;
  }

  .date-pill {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .date-day {
    font-size: 0.88rem;
  }

  .date-month {
    font-size: 0.62rem;
  }

  .time-badge,
  .break-badge,
  .hours-badge,
  .table-chip {
    min-width: 72px;
    padding: 0.48rem 0.65rem;
    font-size: 0.8rem;
  }

  .note-text {
    max-width: 160px;
    font-size: 0.85rem;
  }

  .mode-toggle,
  .weekday-grid {
    padding: 0.65rem;
  }

  .mode-pill,
  .weekday-chip {
    font-size: 0.82rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .month-stats {
    grid-template-columns: 1fr;
  }

  .stat-box {
    padding: 0.7rem;
  }
}

/* approvals */
@media (max-width: 767.98px) {
  .approval-filter-card,
  .approval-summary-card {
    border-radius: 18px;
    padding: 1rem !important;
  }

  .approval-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .approval-stat {
    border-radius: 16px;
    padding: 14px;
  }

  .approval-stat-value {
    font-size: 1.2rem;
  }

  .approval-stat-value-sm {
    font-size: 0.92rem;
  }

  .signature-box {
    padding: 8px;
    border-radius: 16px;
  }

  .signature-box canvas {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .approval-action-row .btn {
    min-width: 100%;
  }
}

/* settings */
@media (max-width: 991.98px) {
  .settings-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .settings-hero,
  .settings-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .settings-card-title {
    font-size: 1rem;
  }

  .settings-card-text {
    font-size: 0.88rem;
  }

  .settings-label {
    font-size: 0.84rem;
  }

  .settings-input {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .settings-primary-btn,
  .settings-danger-btn,
  .settings-danger-outline-btn {
    min-height: 44px;
    padding: 0.72rem 0.95rem;
  }
}

/* assign shifts page */
@media (max-width: 991.98px) {
  .assign-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .mini-card {
    padding: 14px;
    border-radius: 16px;
    min-height: auto;
  }

  .mini-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }

  .mini-value {
    font-size: 0.95rem;
  }

  .assign-create-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .assign-create-btn {
    width: 100%;
    justify-content: center;
  }

  .recent-shift-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* make offcanvas/sidebar feel cleaner on mobile */
@media (max-width: 991.98px) {
  .admin-offcanvas-sidebar {
    width: 86vw !important;
    max-width: 320px;
  }

  .admin-menu-link {
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
  }

  .admin-menu-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
  }

  .admin-sidebar-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

/* very small phones */
@media (max-width: 399.98px) {
  .admin-main-content,
  .dashboard-hero,
  .settings-hero,
  .settings-card,
  .approval-filter-card,
  .approval-summary-card,
  .shifts-filter-card,
  .shifts-table-wrap,
  .dashboard-surface-card {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .admin-sidebar-toggle-btn {
    width: 42px;
    height: 42px;
  }

  .page-title,
  .dashboard-title,
  .settings-title,
  .hero-title,
  .shifts-title {
    font-size: 1.25rem !important;
  }
}

/* =========================================
   ADMIN MOBILE LAYOUT FIX
   Put this at the VERY BOTTOM of main.css
========================================= */

@media (max-width: 991.98px) {
  /* hide fixed desktop sidebar completely on tablet/mobile */
  .admin-desktop-sidebar {
    display: none !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* remove desktop push from content */
  .admin-main-wrap {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .admin-shell {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .admin-main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    overflow-x: hidden !important;
  }

  /* all main blocks should use full width */
  .dashboard-hero,
  .page-hero,
  .settings-hero,
  .surface,
  .surface-lg,
  .table-wrap,
  .approval-filter-card,
  .approval-summary-card,
  .settings-card,
  .dashboard-surface-card,
  .dashboard-kpi-card,
  .worker-card-mini,
  .shifts-filter-card,
  .shifts-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
  }

  /* bootstrap rows inside cards/pages */
  .row {
    --bs-gutter-x: 1rem;
  }

  /* prevent headings/content from compressing too much */
  .dashboard-title,
  .settings-title,
  .hero-title,
  .shifts-title,
  .page-title {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    word-break: break-word;
  }

  .dashboard-subtitle,
  .settings-subtitle,
  .hero-subtitle,
  .shifts-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    word-break: break-word;
  }

  /* stacked action cards */
  .dashboard-action-card,
  .dashboard-stat-card,
  .dashboard-action-item,
  .action-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* filters stack properly */
  .filter-bar,
  .worker-list-topbar,
  .settings-actions,
  .settings-danger-actions,
  .approval-action-row,
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .filter-bar > *,
  .worker-list-topbar > *,
  .settings-actions > *,
  .settings-danger-actions > *,
  .approval-action-row > *,
  .hero-actions > * {
    width: 100% !important;
  }

  /* make mobile offcanvas the only sidebar */
  .admin-offcanvas-sidebar {
    width: 84vw !important;
    max-width: 320px !important;
  }

  /* tables should scroll, not crush layout */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap .table {
    min-width: 680px;
  }
}

@media (max-width: 767.98px) {
  .admin-topbar {
    padding: 0.85rem 0.95rem !important;
    min-height: auto !important;
  }

  .admin-topbar-title {
    font-size: 1rem !important;
  }

  .admin-topbar-subtitle {
    font-size: 0.8rem !important;
  }

  .admin-main-content {
    padding: 0.85rem !important;
  }

  .dashboard-hero,
  .page-hero,
  .settings-hero,
  .surface,
  .surface-lg,
  .settings-card,
  .approval-filter-card,
  .approval-summary-card,
  .dashboard-surface-card,
  .shifts-filter-card,
  .shifts-table-wrap {
    padding: 1rem !important;
    border-radius: 18px !important;
  }

  .hero-card-stats,
  .summary-metrics,
  .approval-stats-grid,
  .assign-info-grid,
  .month-stats {
    grid-template-columns: 1fr !important;
  }

  .dashboard-kpi-card .kpi-value,
  .worker-card-mini .value,
  .metric-value,
  .approval-stat-value,
  .dashboard-stat-value {
    font-size: 1.25rem !important;
  }

  .dashboard-action-card,
  .dashboard-stat-card {
    padding: 1rem !important;
    border-radius: 18px !important;
  }

  .action-icon,
  .stat-icon-wrap {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 575.98px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-main-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}