:root {
  --navy: #0a1628;
  --navy-light: #132338;
  --navy-mid: #1a3050;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-dark: #a88a2e;
  --bg: #eef1f6;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --purple: #8b5cf6;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.07);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.14);
  --sidebar-width: 264px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  direction: rtl;
}

::selection { background: rgba(201,168,76,.3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4ccd8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a9b3c2; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

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

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.5); }
  50% { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

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

/* ---------- Sidebar ---------- */

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--navy) 0%, #060e1a 100%);
  color: #e2e8f0;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.25);
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 200px at 80% -50px, rgba(201,168,76,.14), transparent 70%);
}

.sidebar-brand {
  padding: 1.6rem 1.4rem 1.3rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  position: relative;
  z-index: 1;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.sidebar-brand .stars {
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  margin-top: 2px;
}

.sidebar-brand .tagline {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #8fa0b8;
}

.sidebar-nav {
  padding: 1rem 0.8rem 1.4rem;
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.nav-section {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #5b6b82;
  padding: 0.9rem 0.85rem 0.4rem;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.68rem 0.9rem;
  margin: 0.14rem 0;
  border-radius: 11px;
  color: #c3cede;
  font-size: 0.92rem;
  transition: all 0.18s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateX(-2px);
}

.nav-link.active {
  background: linear-gradient(270deg, rgba(201,168,76,0.28), rgba(201,168,76,.06));
  color: var(--gold-light);
  border-right: 3px solid var(--gold);
  font-weight: 600;
}

.nav-link .icon {
  width: 1.3rem;
  text-align: center;
  opacity: 0.9;
}

.nav-link .count {
  margin-right: auto;
  background: rgba(239,68,68,.9);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  min-width: 1.2rem;
  text-align: center;
}

.sidebar-footer {
  padding: 0.9rem 1.2rem;
  font-size: 0.7rem;
  color: #5b6b82;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 1;
}

/* ---------- Main ---------- */

.main-content {
  margin-right: var(--sidebar-width);
  margin-left: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}

.topbar .subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.1rem 0 0;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.global-search {
  position: relative;
}

.global-search input {
  width: 250px;
  padding: 0.52rem 2.4rem 0.52rem 0.9rem;
  border: 1px solid #d7dee9;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #f6f8fb;
  transition: all .2s ease;
}

.global-search input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
  width: 300px;
}

.global-search .fa-magnifying-glass {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e2e8f0;
  color: var(--navy);
  transition: all .2s ease;
}

.bell:hover { border-color: var(--gold); color: var(--gold-dark); }

.bell .dot {
  position: absolute;
  top: -5px;
  left: -5px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.08rem 0.36rem;
  min-width: 1.15rem;
  text-align: center;
  animation: pulseGold 2.4s infinite;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.9rem 0.32rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #e2e8f0;
  font-size: 0.8rem;
}

.user-chip .avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.page-body {
  padding: 1.6rem 1.75rem 2.6rem;
  flex: 1;
}

.page-body > * { animation: fadeUp .35s ease both; }

/* ---------- Hero strip ---------- */

.hero-strip {
  background:
    radial-gradient(700px 220px at 15% -60px, rgba(201,168,76,.25), transparent 70%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.hero-strip h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-strip p { margin: 0; color: #b7c3d6; font-size: 0.85rem; }

.hero-strip .hero-stats {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero-strip .hero-stat { text-align: center; }

.hero-strip .hero-stat .v {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-strip .hero-stat .l { font-size: 0.72rem; color: #9fb0c7; }

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,22,40,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

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

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.stat-card .stat-icon.i-success { background: linear-gradient(135deg, #34d399, #059669); }
.stat-card .stat-icon.i-danger { background: linear-gradient(135deg, #f87171, #dc2626); }
.stat-card .stat-icon.i-info { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.stat-card .stat-icon.i-warning { background: linear-gradient(135deg, #fbbf24, #d97706); }
.stat-card .stat-icon.i-navy { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); }
.stat-card .stat-icon.i-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.stat-card .label {
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
  color: var(--navy);
  line-height: 1.2;
}

.stat-card .hint {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.22rem;
}

.stat-card .trend-up { color: var(--success); font-weight: 600; }
.stat-card .trend-down { color: var(--danger); font-weight: 600; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10,22,40,0.05);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.card-header {
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-header h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-header h3 .hdr-ic {
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.card-body { padding: 1.25rem 1.3rem; }
.card-body.p-0 { padding: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
}

.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- Buttons / badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 11px;
  border: none;
  font-size: 0.87rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn:active { transform: scale(.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a1628;
  box-shadow: 0 4px 14px rgba(201,168,76,.35);
}

.btn-gold:hover { filter: brightness(1.08); color: #0a1628; }

.btn-navy {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff;
}

.btn-navy:hover { filter: brightness(1.25); color: #fff; }

.btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--text);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn-sm { padding: 0.34rem 0.72rem; font-size: 0.78rem; border-radius: 9px; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

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

.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #e8edf4; color: #475569; }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ---------- Room grid ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.6rem;
}

.room-tile {
  border-radius: 12px;
  padding: 0.72rem 0.4rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.room-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 45%);
  pointer-events: none;
}

.room-tile:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.room-tile.available { background: linear-gradient(135deg, #34d399, #059669); }
.room-tile.occupied { background: linear-gradient(135deg, #f87171, #dc2626); }
.room-tile.cleaning { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.room-tile.maintenance { background: linear-gradient(135deg, #fbbf24, #d97706); color: #1e293b; }
.room-tile.out_of_order { background: linear-gradient(135deg, #94a3b8, #64748b); }

.room-tile .type {
  display: block;
  font-size: 0.63rem;
  font-weight: 400;
  opacity: 0.92;
  margin-top: 0.18rem;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}

table.data th {
  text-align: right;
  padding: 0.78rem 1.05rem;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

table.data td {
  padding: 0.8rem 1.05rem;
  border-bottom: 1px solid #f1f5f9;
}

table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafbfd; }

/* ---------- Suggestions ---------- */

.suggestion-item {
  padding: 1rem 1.1rem;
  border-radius: 13px;
  border: 1px solid #e6ebf2;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  background: #fdfdfe;
}

.suggestion-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(201,168,76,.12);
}

.suggestion-item .title {
  font-weight: 700;
  margin: 0.4rem 0 0.3rem;
  color: var(--navy);
}

.suggestion-item .body {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.7;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-size: 0.89rem;
  font-family: inherit;
  background: #fff;
  transition: all .15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

select {
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.85rem;
}

/* ---------- Messages ---------- */

.messages { list-style: none; padding: 0; margin: 0 0 1rem; }

.messages li {
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-size: 0.89rem;
  border: 1px solid transparent;
  animation: fadeUp .3s ease both;
}

.messages .success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.messages .error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.messages .info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.messages .warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ---------- Misc ---------- */

.floor-block { margin-bottom: 1.5rem; }

.floor-block h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
}

.empty-state {
  text-align: center;
  padding: 2.6rem 1rem;
  color: var(--muted);
}

.empty-state .fa-solid {
  font-size: 1.9rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.7rem;
}

.kpi-bar {
  height: 8px;
  background: #e8edf4;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.kpi-bar > div {
  height: 100%;
  background: linear-gradient(270deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width .6s ease;
}

.employee-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid #e6ebf2;
  border-radius: 13px;
  margin-bottom: 0.7rem;
  transition: all 0.18s ease;
  background: #fdfdfe;
}

.employee-card:hover {
  border-color: var(--gold);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(201,168,76,.1);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.low-stock { color: var(--danger); font-weight: 700; }

/* ---------- Activity feed ---------- */

.feed { position: relative; padding-right: 1.1rem; }

.feed::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e6ebf2;
  border-radius: 2px;
}

.feed-item {
  position: relative;
  padding: 0 1rem 1.05rem 0;
}

.feed-item::before {
  content: '';
  position: absolute;
  right: -1.1rem;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(201,168,76,.35);
}

.feed-item.f-info::before { background: var(--info); box-shadow: 0 0 0 2px rgba(59,130,246,.3); }
.feed-item.f-success::before { background: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,.3); }
.feed-item.f-danger::before { background: var(--danger); box-shadow: 0 0 0 2px rgba(239,68,68,.3); }

.feed-item .f-title { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.feed-item .f-meta { font-size: 0.73rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- Quick actions ---------- */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.05rem 0.6rem;
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  background: #fdfdfe;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all .18s ease;
  text-align: center;
}

.quick-action:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201,168,76,.15);
}

.quick-action .qa-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.quick-action:nth-child(2) .qa-ic { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.quick-action:nth-child(3) .qa-ic { background: linear-gradient(135deg, #34d399, #059669); }
.quick-action:nth-child(4) .qa-ic { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.quick-action:nth-child(5) .qa-ic { background: linear-gradient(135deg, #f87171, #dc2626); }
.quick-action:nth-child(6) .qa-ic { background: linear-gradient(135deg, var(--navy-mid), var(--navy)); }

/* ---------- Mini list rows ---------- */

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px dashed #e6ebf2;
  font-size: 0.86rem;
}

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

.mini-row .mr-main { font-weight: 600; color: var(--navy); }
.mini-row .mr-sub { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }

/* ---------- Search results ---------- */

.result-group h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-2-even { grid-template-columns: 1fr; }
  .global-search input { width: 170px; }
  .global-search input:focus { width: 200px; }
}

@media (max-width: 800px) {
  .sidebar { width: 72px; }
  .sidebar-brand h1,
  .sidebar-brand .tagline,
  .sidebar-brand .stars,
  .nav-section,
  .nav-link span.label,
  .nav-link .count,
  .sidebar-footer { display: none; }
  .nav-link { justify-content: center; }
  .main-content { margin-right: 72px; margin-left: 0; }
  .page-body { padding: 1rem; }
  .global-search { display: none; }
  .hero-strip { flex-direction: column; align-items: flex-start; }
}
