/* ═══════════════════════════════════════════════
   Rejacreation Intergated Group — Main Stylesheet
   Design: Simple · Gorgeous · Professional
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --orange:       #F5A623;
  --orange-d:     #D4891A;
  --orange-l:     #FFF8EC;
  --orange-m:     #FEF0D3;
  --gray-900:     #111827;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-300:     #D1D5DB;
  --gray-100:     #F3F4F6;
  --gray-50:      #F9FAFB;
  --white:        #FFFFFF;
  --sidebar:      #18181B;
  --sidebar-2:    #27272A;
  --success:      #16A34A;
  --success-l:    #DCFCE7;
  --warning:      #D97706;
  --warning-l:    #FEF3C7;
  --danger:       #DC2626;
  --danger-l:     #FEE2E2;
  --info:         #2563EB;
  --info-l:       #DBEAFE;
  --purple:       #7C3AED;
  --purple-l:     #EDE9FE;
  --teal:         #0D9488;
  --teal-l:       #CCFBF1;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.12);
  --sidebar-w:    256px;
  --topbar-h:     64px;
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT ── */
.layout { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  color: rgba(255,255,255,.85);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 200;
  transition: transform var(--transition);
}

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

.sidebar-brand {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,166,35,.4);
}

.brand-text .name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}

.brand-text .sub {
  font-size: 9.5px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* nav groups */
.nav-group { padding: 20px 0 4px; }

.nav-label {
  padding: 0 16px 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 450;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: calc(100% - 20px);
  text-align: left;
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(245,166,35,.2), rgba(245,166,35,.1));
  color: var(--orange);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--orange);
}

.nav-item .badge-count {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

/* company list at bottom */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 10px;
}

.sidebar-footer .label-sm {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 0 6px;
  margin-bottom: 8px;
}

.co-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.co-pill:hover { background: rgba(255,255,255,.06); }

.co-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.co-pill-name {
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--gray-100);
}

.topbar-title { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.topbar-sub   { font-size: 12px; color: var(--gray-500); margin-top: 1px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200, #E5E7EB);
  background: var(--white);
  font-size: 16px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}

.icon-btn:hover { border-color: var(--orange); color: var(--orange); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border-radius: 40px;
  border: 1.5px solid var(--gray-200, #E5E7EB);
  cursor: pointer;
  transition: border-color var(--transition);
}

.user-chip:hover { border-color: var(--orange); }

.user-chip .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.user-chip .uname { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }

/* ── CONTENT ── */
.content {
  padding: 26px 28px;
  flex: 1;
}

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.page-header p  { font-size: 13px; color: var(--gray-500); margin-top: 3px; }

/* ── STAT CARDS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stat-card.orange::after { background: var(--orange); }
.stat-card.green::after  { background: var(--success); }
.stat-card.blue::after   { background: var(--info); }
.stat-card.red::after    { background: var(--danger); }
.stat-card.purple::after { background: var(--purple); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.stat-label { font-size: 12px; font-weight: 500; color: var(--gray-500); margin-bottom: 5px; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  letter-spacing: -.5px;
}

.stat-change {
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }
.stat-change.neu  { color: var(--gray-500); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.card-header p  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.card-body { padding: 20px 22px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-6-4 { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .8px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}

tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
  color: var(--gray-700);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: var(--gray-50); }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }

.emp-cell { display: flex; align-items: center; gap: 10px; }
.emp-name { font-weight: 600; font-size: 13.5px; color: var(--gray-900); }
.emp-role { font-size: 11.5px; color: var(--gray-500); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-l); color: var(--success); }
.badge-warning { background: var(--warning-l); color: var(--warning); }
.badge-danger  { background: var(--danger-l);  color: var(--danger); }
.badge-info    { background: var(--info-l);    color: var(--info); }
.badge-orange  { background: var(--orange-m);  color: var(--orange-d); }
.badge-purple  { background: var(--purple-l);  color: var(--purple); }
.badge-teal    { background: var(--teal-l);    color: var(--teal); }
.badge-gray    { background: var(--gray-100);  color: var(--gray-500); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,166,35,.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(245,166,35,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}

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

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
}

.btn-ghost:hover { background: var(--gray-200, #E5E7EB); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 8px;  font-size: 11px; border-radius: 4px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: .2px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  padding: 9px 13px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,166,35,.12);
}

textarea { resize: vertical; min-height: 80px; }

.input-note { font-size: 11.5px; color: var(--gray-500); }

/* ── PROGRESS BAR ── */
.prog-wrap {
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  height: 7px;
}

.prog-fill {
  height: 100%;
  border-radius: 6px;
  transition: width .6s ease;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-500);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--orange); }

.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 700;
}

/* ── COMPANY CARDS ── */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.co-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.co-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

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

.co-icon  { font-size: 30px; margin-bottom: 12px; display: block; }
.co-name  { font-size: 14.5px; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.co-type  { font-size: 12px; color: var(--gray-500); margin-bottom: 16px; }

.co-meta { display: flex; gap: 18px; }
.co-meta-item .num { font-size: 19px; font-weight: 800; color: var(--gray-900); }
.co-meta-item .lbl { font-size: 10.5px; color: var(--gray-500); }

/* ── NOTICE ITEM ── */
.notice-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
}

.notice-item:last-child { border-bottom: none; }

.notice-item.urgent { border-left: 4px solid var(--danger); background: #fff9f9; }
.notice-item.general { border-left: 4px solid var(--info); }
.notice-item.finance { border-left: 4px solid var(--orange); }
.notice-item.agriculture { border-left: 4px solid var(--success); }
.notice-item.hr { border-left: 4px solid var(--purple); }

.notice-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin: 6px 0 6px; }
.notice-body  { font-size: 13px; color: var(--gray-500); line-height: 1.65; }
.notice-meta  { display: flex; align-items: center; justify-content: space-between; }
.notice-date  { font-size: 11.5px; color: var(--gray-500); }

/* ── NOTIFICATION DOT ── */
.notif-list { display: flex; flex-direction: column; gap: 0; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}

.notif-item:last-child { border-bottom: none; }

.notif-dot-wrap { padding-top: 4px; }

.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.notif-text { font-size: 13px; line-height: 1.55; color: var(--gray-700); }
.notif-time { font-size: 11px; color: var(--gray-500); margin-top: 3px; }

/* ── SALARY SLIP ── */
.slip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

.slip-row:last-child { border-bottom: none; }
.slip-row .sl { color: var(--gray-500); }
.slip-row .sv { font-weight: 600; }
.slip-row.total .sl,
.slip-row.total .sv { font-size: 15px; font-weight: 800; color: var(--orange-d); }
.slip-row.deduct .sv { color: var(--danger); }

/* ── LEAVE CALENDAR ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.cal-day-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-500);
  padding-bottom: 5px;
}

.cal-day {
  padding: 7px 4px;
  font-size: 12.5px;
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-700);
  cursor: default;
  transition: background var(--transition);
}

.cal-day.today     { background: var(--orange); color: #fff; font-weight: 700; }
.cal-day.on-leave  { background: var(--danger-l); color: var(--danger); font-weight: 600; }
.cal-day.holiday   { background: var(--warning-l); color: var(--warning); font-weight: 600; }
.cal-day.empty     { background: transparent; }

/* ── LEAVE APPROVAL ITEM ── */
.leave-req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}

.leave-req-item:last-child { border-bottom: none; }

.leave-req-info { flex: 1; }
.leave-req-info .name { font-weight: 600; font-size: 13.5px; }
.leave-req-info .detail { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.leave-req-actions { display: flex; gap: 6px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-500);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--danger-l); color: var(--danger); }

.modal-body { padding: 22px 26px 26px; }

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── FLASH MESSAGES ── */
.flash {
  padding: 13px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success { background: var(--success-l); color: var(--success); border: 1px solid #86efac; }
.flash-error   { background: var(--danger-l);  color: var(--danger);  border: 1px solid #fca5a5; }
.flash-warning { background: var(--warning-l); color: var(--warning); border: 1px solid #fcd34d; }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sidebar) 0%, #27272A 50%, #18181B 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.15), transparent 70%);
  top: -100px; right: -100px;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.08), transparent 70%);
  bottom: -100px; left: -100px;
}

.login-box {
  background: var(--white);
  border-radius: 22px;
  padding: 44px 40px;
  width: 420px;
  max-width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  position: relative;
  z-index: 10;
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-brand .mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(245,166,35,.4);
}

.login-brand h1 { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.login-brand p  { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ── INVENTORY STATUS ── */
.inv-status-adequate { color: var(--success); }
.inv-status-low      { color: var(--warning); }
.inv-status-critical { color: var(--danger); font-weight: 700; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200, #E5E7EB);
  border-radius: var(--radius);
  padding: 7px 13px;
  transition: border-color var(--transition);
}

.search-bar:focus-within { border-color: var(--orange); }

.search-bar input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13.5px;
  width: 220px;
  box-shadow: none;
}

.search-bar input:focus { box-shadow: none; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--gray-500);
}

.empty-state .emoji { font-size: 44px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--gray-100);
  margin: 16px 0;
}

/* ── TOOLTIP TITLES ── */
[title] { cursor: help; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .grid-2, .grid-6-4, .grid-3 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
}

/* ── PRINT ── */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ── ADDITIONAL POLISH ── */

/* Stat icon colors */
.stat-icon.orange  { background: var(--orange-m); }
.stat-icon.green   { background: var(--success-l); }
.stat-icon.blue    { background: var(--info-l); }
.stat-icon.red     { background: var(--danger-l); }
.stat-icon.purple  { background: var(--purple-l); }

/* Page transition */
.content { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Code tags */
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gray-700);
}

/* Active nav shimmer */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}
.nav-item { position: relative; }

/* Table row actions fade in */
tbody tr .btn { opacity: 0; transition: opacity var(--transition); }
tbody tr:hover .btn { opacity: 1; }

/* Card hover glow for company cards */
.co-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 0 0 2px var(--orange-m); }

/* Better select styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px !important;
}

/* Smooth scroll for tables */
.table-wrap { scroll-behavior: smooth; }

/* Badge pulse for urgent */
.badge-danger.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* Login page input focus glow */
.login-box input:focus {
  box-shadow: 0 0 0 4px rgba(245,166,35,.15);
}

/* Better progress bars */
.prog-fill {
  background: linear-gradient(90deg, var(--orange), var(--orange-d));
}

/* Stats row responsive */
@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 22px; }
}

/* Print improvements */
@media print {
  .stat-card, .card { break-inside: avoid; }
  .card-header { background: #f9f9f9 !important; }
}
