@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #0891b2;
  --info-light: #cffafe;
  --purple: #7c3aed;
  --purple-light: #f3e8ff;
  
  /* Text */
  --text-900: #0f172a;
  --text-800: #1e293b;
  --text-700: #334155;
  --text-600: #475569;
  --text-500: #64748b;
  --text-400: #94a3b8;
  --text-300: #cbd5e1;
  
  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;
  
  /* Backgrounds */
  --bg-body: #f5f6f8;
  --bg-card: #ffffff;
  --bg-surface: #f8fafc;
  
  /* Sidebar */
  --sidebar-w: 260px;
  --sidebar-w-mobile: 280px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-700);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-300);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-400);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content {
  padding: 1.5rem 2rem;
  flex: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--border-light);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--text-300);
  border-radius: 2px;
}

.sidebar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.sidebar-brand i {
  color: var(--primary);
  font-size: 1.5rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.sidebar-user .avatar {
  width: 40px;
  height: 40px;
}

.sidebar-main-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  flex: 1;
}

.sidebar-main-nav > li {
  margin-bottom: 0.25rem;
}

.sidebar-main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-main-nav > li > a:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.sidebar-main-nav > li > a.active {
  background: var(--primary);
  color: #ffffff;
}

.sidebar-main-nav > li > a.active:hover {
  background: var(--primary-hover);
}

.sidebar-main-nav > li > a i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.nav-dropdown-toggle .nav-dropdown-arrow {
  margin-left: auto;
  transition: transform var(--transition-medium);
  font-size: 0.75rem;
  color: var(--text-400);
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-toggle .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-toggle i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.nav-dropdown-toggle .nav-label {
  flex: 1;
}

.nav-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
  padding-left: 0.5rem;
}

.nav-dropdown.open .nav-dropdown-menu {
  max-height: 500px;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-dropdown-menu li a:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.nav-dropdown-menu li a.active {
  background: var(--primary);
  color: #ffffff;
}

.nav-dropdown-menu li a i {
  font-size: 0.9rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.nav-dropdown-menu li a .nav-badge {
  margin-left: auto;
}

/* ── Nav Badge ── */
.nav-badge {
  background: var(--danger);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.4;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Nav Link with Badge ── */
.nav-link-with-badge {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link-with-badge:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.nav-link-with-badge.active {
  background: var(--primary);
  color: #ffffff;
}

.nav-link-with-badge.active:hover {
  background: var(--primary-hover);
}

.nav-link-with-badge i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.nav-link-with-badge .nav-label {
  flex: 1;
}

.nav-link-with-badge .nav-badge {
  margin-left: auto;
}

.sidebar-bottom-nav {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.sidebar-bottom-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-500);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-bottom-nav li a:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.sidebar-bottom-nav li a i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-500);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.btn-logout i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-version {
  font-size: 0.65rem;
  color: var(--text-400);
  text-align: center;
  padding: 0.5rem 0;
}

.sidebar-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-900);
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--bg-card);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-title h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-900);
}

.topbar-title p {
  font-size: 0.75rem;
  color: var(--text-500);
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-actions .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
}

.topbar-actions .avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-custom {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.card-custom:hover {
  box-shadow: var(--shadow-md);
}

/* ============================================================
   KPI / STAT CARDS
   ============================================================ */
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.kpi-icon-blue { background: var(--primary-light); color: var(--primary); }
.kpi-icon-green { background: var(--success-light); color: var(--success); }
.kpi-icon-amber { background: var(--warning-light); color: var(--warning); }
.kpi-icon-cyan { background: var(--info-light); color: var(--info); }
.kpi-icon-rose { background: #fce7f3; color: #db2777; }
.kpi-icon-purple { background: var(--purple-light); color: var(--purple); }

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--text-500);
  font-weight: 500;
}

.kpi-delta {
  font-size: 0.7rem;
  color: var(--text-400);
  margin-top: 0.25rem;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 4px 0;
}

.stat-strip::-webkit-scrollbar {
  height: 4px;
}

.stat-strip::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 2px;
}

.stat-strip::-webkit-scrollbar-thumb {
  background: var(--text-300);
  border-radius: 2px;
}

.stat-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.stat-card:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.stat-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--bg-surface);
}

.stat-card .sc-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.2;
}

.stat-card .sc-lbl {
  font-size: 12px;
  color: var(--text-500);
  margin-top: 4px;
  font-weight: 500;
}

.stat-card .s-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.btn-primary-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-700);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--border-light);
  border-color: var(--text-300);
  color: var(--text-900);
}

.btn-outline-custom.danger {
  border-color: #fca5a5;
  color: var(--danger);
}

.btn-outline-custom.danger:hover {
  background: var(--danger-light);
  border-color: #fecaca;
}

/* Action Buttons */
.btn-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-action-success {
  background: var(--success);
}

.btn-action-success:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-action-danger {
  background: var(--danger);
}

.btn-action-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-action-purple {
  background: var(--purple);
}

.btn-action-purple:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ============================================================
   AVATARS
   ============================================================ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-blue { background: var(--primary); }
.avatar-green { background: var(--success); }
.avatar-amber { background: var(--warning); }
.avatar-rose { background: #e11d48; }
.avatar-sky { background: var(--info); }
.avatar-lime { background: #65a30d; }
.avatar-orange { background: #f97316; }
.avatar-purple { background: var(--purple); }

/* ============================================================
   STATUS PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}

.pill-green { background: var(--success-light); color: #047857; border-color: #a7f3d0; }
.pill-red { background: var(--danger-light); color: #be123c; border-color: #fecaca; }
.pill-amber { background: var(--warning-light); color: #b45309; border-color: #fde68a; }
.pill-blue { background: var(--primary-light); color: #1d4ed8; border-color: #bfdbfe; }
.pill-gray { background: var(--border-light); color: var(--text-500); border-color: var(--border); }
.pill-cyan { background: var(--info-light); color: #0e7490; border-color: #a5f3fc; }

/* Status Badges (sp) */
.sp {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-new { background: var(--primary-light); color: #1d4ed8; }
.status-reviewing { background: var(--warning-light); color: #92400e; }
.status-shortlisted { background: var(--success-light); color: #047857; }
.status-rejected { background: var(--danger-light); color: #be123c; }
.status-assessment-sent { background: var(--purple-light); color: #7e22ce; }
.status-interview-scheduled { background: #fff7ed; color: #c2410c; }
.status-onboarding { background: var(--primary-light); color: #1e40af; }
.status-open {color: green;}
.status-closed {color: red;}

/* Attendance Status */
.attendance-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.status-present { background: var(--success-light); color: #065f46; }
.status-late { background: var(--warning-light); color: #92400e; }
.status-absent { background: var(--danger-light); color: #991b1b; }
.status-leave { background: var(--primary-light); color: #1e40af; }

/* Stage Pills */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.sp-invited { background: var(--primary-light); color: #1d4ed8; }
.sp-submitted { background: var(--success-light); color: #166534; }
.sp-ndasent { background: var(--purple-light); color: #7c3aed; }
.sp-docs { background: var(--warning-light); color: #92400e; }
.sp-idgen { background: var(--purple-light); color: #6b21a8; }
.sp-active { background: var(--success-light); color: #047857; }

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-400);
  font-size: 14px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text-900);
  background: var(--bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box input::placeholder {
  color: var(--text-400);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-custom thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-500);
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}

.table-custom tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-900);
}

.table-custom tbody tr:hover {
  background: var(--bg-surface);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   DRAWER / MODAL
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
  backdrop-filter: blur(2px);
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  /*top: 50%;*/
  /*left: 50%;*/
  transform: translate(-50%, -50%) scale(0.95);
  width: 600px;
  max-width: 95vw;
  max-height: 85vh;
  background: var(--bg-card);
  z-index: 1050;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
  animation: drawerSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drawerSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-header .drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-900);
}

.drawer-header .drawer-subtitle {
  font-size: 12px;
  color: var(--text-500);
  margin-top: 2px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 2px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: var(--text-300);
  border-radius: 2px;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  background: #fafafa;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.drawer-close-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 18px;
  color: var(--text-400);
  cursor: pointer;
  transition: color var(--transition-fast);
  border-radius: 6px;
}

.drawer-close-btn:hover {
  color: var(--text-900);
  background: var(--border-light);
}

/* ============================================================
   INFO ROWS
   ============================================================ */
.info-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  width: 160px;
  color: var(--text-500);
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 500;
}

.info-val {
  color: var(--text-900);
  font-weight: 500;
  word-break: break-word;
}

.info-val.muted {
  color: var(--text-500);
  font-weight: 400;
}

/* ============================================================
   ACTION PANEL
   ============================================================ */
.action-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 8px;
}

.action-panel .ap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-900);
  margin-bottom: 12px;
}

.action-panel .ap-title i {
  color: var(--primary);
}

/* ============================================================
   DOCUMENT ITEMS
   ============================================================ */
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.doc-item:hover {
  border-color: #93c5fd;
}

.doc-item .doc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.doc-item .doc-info {
  flex: 1;
  min-width: 0;
}

.doc-item .doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-900);
}

.doc-item .doc-size {
  font-size: 11px;
  color: var(--text-400);
}

/* ============================================================
   FILTERS
   ============================================================ */
.filter-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  animation: slideDown var(--transition-fast);
}

.filter-panel.open {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-900);
  outline: none;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}

.filter-box {
  min-width: 140px;
}

.filter-box .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  padding: 8px 12px;
  color: var(--text-900);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-pill {
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: var(--border-light);
  border-color: var(--text-300);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Active Filter Tags */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
  color: #1e40af;
}

.active-filter-tag .tag-remove {
  cursor: pointer;
  font-size: 11px;
  transition: color var(--transition-fast);
}

.active-filter-tag .tag-remove:hover {
  color: var(--danger);
}

/* ============================================================
   ATTACHMENTS
   ============================================================ */
.attach-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fafafa;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  height: 45px;
}

.attach-zone:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.attach-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attach-icon i {
  font-size: 14px;
  color: var(--primary);
}

.attach-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-700);
}

/* File Preview */
.file-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.file-preview-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-preview-icon i {
  font-size: 16px;
}

.file-preview-info {
  flex: 1;
  min-width: 0;
}

.file-preview-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-size {
  font-size: 11px;
  color: var(--text-400);
}

.file-preview-remove {
  background: none;
  border: none;
  color: var(--text-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.file-preview-remove:hover {
  color: var(--danger);
}

/* ============================================================
   RECIPIENT TAGS
   ============================================================ */
.recipient-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.recipient-tag button {
  background: none;
  border: none;
  color: #1d4ed8;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 44px;
  cursor: text;
  background: var(--bg-card);
}

.tags-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.tags-box input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
  background: transparent;
}

/* ============================================================
   SUGGESTION BOX
   ============================================================ */
.suggestion-box {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  top: calc(100% + 4px);
  left: 0;
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:hover {
  background: var(--border-light);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideToast 0.25s ease;
  min-width: 280px;
  max-width: 100%;
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-msg.success { background: #065f46; border-left: 4px solid #34d399; }
.toast-msg.success i { color: #34d399; }
.toast-msg.error { background: #991b1b; border-left: 4px solid #f87171; }
.toast-msg.error i { color: #f87171; }
.toast-msg.info { background: #1e3a8a; border-left: 4px solid #60a5fa; }
.toast-msg.info i { color: #60a5fa; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-700);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  background: var(--border-light);
  border-color: var(--text-300);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   HEATMAP
   ============================================================ */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s;
}

.heatmap-cell:hover {
  transform: scale(1.05);
}

/* ============================================================
   TOGGLE SWITCH
   ============================================================ */
.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--text-300);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}

.toggle-track.active {
  background: var(--primary);
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-track.active .toggle-thumb {
  transform: translateX(18px);
}

/* ============================================================
   DATE NAV
   ============================================================ */
.date-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-600);
  transition: all var(--transition-fast);
}

.date-nav-btn:hover {
  background: var(--border-light);
  border-color: var(--text-400);
}

/* ============================================================
   EMPLOYEE PROFILE
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 60%, #3b82f6 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.profile-hero-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.profile-hero-info h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-hero-info .sub {
  font-size: 14px;
  opacity: .85;
  margin-bottom: 12px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-hero-solid {
  background: #ffffff;
  color: #1e3a8a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition-fast);
}

.btn-hero-solid:hover {
  opacity: .9;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-500);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 7px;
}

.tab-btn:hover {
  color: var(--text-900);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: slideUp var(--transition-fast);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Sections */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.info-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section-title i {
  color: var(--primary);
  font-size: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 18px;
}

.tl-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}

.tl-body {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.tl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-900);
}

.tl-sub {
  font-size: 12px;
  color: var(--text-500);
  margin-top: 2px;
}

/* Attendance Rows */
.att-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.att-row:last-child {
  border-bottom: none;
}

.att-date {
  width: 100px;
  color: var(--text-500);
  font-size: 13px;
}

.att-status {
  margin-left: auto;
}

/* ============================================================
   TAB TOGGLE
   ============================================================ */
.tab-toggle {
  display: flex;
  gap: 2px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.tab-toggle-btn {
  padding: 7px 20px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-toggle-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.tab-toggle-btn:hover:not(.active) {
  background: var(--border);
  color: var(--text-700);
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
  animation: slideUp var(--transition-fast);
}

/* ============================================================
   MENTOR CARDS
   ============================================================ */
.mentor-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mentor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   EXPORT DROPDOWN
   ============================================================ */
.export-dropdown {
  position: relative;
}

.export-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 99;
  overflow: hidden;
}

.export-menu.open {
  display: block;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-700);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.export-item:hover {
  background: var(--border-light);
  color: var(--text-900);
}

.export-item i {
  font-size: 15px;
}

.export-item.pdf i {
  color: #ef4444;
}

.export-item.excel i {
  color: #16a34a;
}

/* ============================================================
   HEADCOUNT BARS
   ============================================================ */
.hc-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.hc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-slow);
}

.hc-blue { background: var(--primary); }
.hc-green { background: var(--success); }
.hc-amber { background: var(--warning); }
.hc-cyan { background: var(--info); }
.hc-rose { background: #db2777; }

/* ============================================================
   PIPELINE STEPPER
   ============================================================ */
.pipe-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  overflow-x: auto;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}

.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.pipe-step.done:not(:last-child)::after {
  background: var(--success);
}

.pipe-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 1;
  position: relative;
  transition: all var(--transition-fast);
}

.pipe-step.done .pipe-dot {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.pipe-step.active .pipe-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.pipe-step.rejected .pipe-dot {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.pipe-lbl {
  font-size: 10px;
  color: var(--text-400);
  margin-top: 5px;
  text-align: center;
  line-height: 1.2;
}

.pipe-step.done .pipe-lbl,
.pipe-step.active .pipe-lbl {
  font-weight: 600;
  color: var(--text-700);
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.kpi-skeleton {
  height: 72px;
  width: 100%;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
/* Text */
.text-900 { color: var(--text-900) !important; }
.text-800 { color: var(--text-800) !important; }
.text-700 { color: var(--text-700) !important; }
.text-600 { color: var(--text-600) !important; }
.text-500 { color: var(--text-500) !important; }
.text-400 { color: var(--text-400) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-500) !important; }

/* Font Weight */
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Font Size */
.fs-10 { font-size: 0.625rem !important; }
.fs-11 { font-size: 0.6875rem !important; }
.fs-12 { font-size: 0.75rem !important; }
.fs-13 { font-size: 0.8125rem !important; }
.fs-14 { font-size: 0.875rem !important; }
.fs-16 { font-size: 1rem !important; }
.fs-18 { font-size: 1.125rem !important; }
.fs-20 { font-size: 1.25rem !important; }
.fs-24 { font-size: 1.5rem !important; }
.fs-28 { font-size: 1.75rem !important; }
.fs-32 { font-size: 2rem !important; }

/* Border Radius */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Display */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

/* Flex */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.flex-1 { flex: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Margin & Padding */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

/* Width */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.w-50 { width: 50% !important; }

/* Text Align */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; }
.position-fixed { position: fixed !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Cursor */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }

/* User Select */
.user-select-none { user-select: none !important; }
.user-select-all { user-select: all !important; }

/* White Space */
.white-space-nowrap { white-space: nowrap !important; }
.white-space-normal { white-space: normal !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 200px;
    padding: 1rem 0.75rem;
  }

  .sidebar-main-nav > li > a,
  .nav-dropdown-toggle,
  .sidebar-bottom-nav li a {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-dropdown-menu li a {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem 0.4rem 2rem;
  }

  .content {
    padding: 1rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding: 24px 20px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .profile-hero-info h1 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .app-wrapper {
    position: relative;
  }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w-mobile);
    z-index: 1050;
    transition: left var(--transition-medium);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    border-right: none;
    height: 100vh;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
  }

  .app-wrapper.sidebar-open .sidebar {
    left: 0;
  }

  .app-wrapper.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
  }

  .sidebar-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  .topbar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    padding: 0.75rem;
  }

  .card-custom {
    padding: 16px !important;
  }

  .card-custom.p-4 {
    padding: 1rem !important;
  }

  .row.g-3 {
    --bs-gutter-y: 0.75rem;
    --bs-gutter-x: 0.75rem;
  }

  .col-2, .col-3, .col-4, .col-6, .col-8, .col-9, .col-10 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .search-box {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 4px;
  }

  .btn-outline-custom,
  .btn-primary-custom {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 10px;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .d-flex.flex-wrap.gap-2.mb-4 {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .stat-card {
    min-width: 110px;
    padding: 14px 16px;
  }

  .stat-card .sc-num {
    font-size: 24px;
  }

  .drawer {
    width: 90vw;
    max-height: 90vh;
  }

  .kpi-value {
    font-size: 1.2rem;
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .hero-badges,
  .hero-actions {
    justify-content: center;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .profile-tabs {
    gap: 2px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .info-section {
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 100%;
    left: -100%;
  }

  .app-wrapper.sidebar-open .sidebar {
    left: 0;
  }

  .stat-card {
    min-width: 70px;
    padding: 10px 12px;
  }

  .stat-card .sc-num {
    font-size: 18px;
  }

  .stat-card .sc-lbl {
    font-size: 9px;
  }

  .drawer {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translate(0, 0);
  }

  .drawer.open {
    transform: translate(0, 0);
  }

  .drawer-header {
    padding: 16px 20px;
  }

  .drawer-body {
    padding: 16px;
  }

  .drawer-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .drawer-footer .btn-action,
  .drawer-footer .btn-outline-custom {
    flex: 1;
    justify-content: center;
  }

  .info-row {
    flex-direction: column;
    padding: 8px 0;
  }

  .info-label {
    width: 100%;
    font-size: 11px;
    margin-bottom: 2px;
  }

  .info-val {
    font-size: 13px;
  }

  .doc-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .doc-item .doc-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .toast-msg {
    min-width: 200px;
    font-size: 12px;
    padding: 10px 16px;
  }

  .action-panel {
    padding: 12px;
  }

  .action-panel .form-control {
    font-size: 12px;
    padding: 6px 10px;
  }

  .btn-action {
    font-size: 12px;
    padding: 6px 14px;
  }

  .profile-hero {
    padding: 16px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .profile-hero-info h1 {
    font-size: 18px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 2px 10px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .tab-btn i {
    display: none;
  }

  .table-custom thead {
    display: none;
  }

  .table-custom tbody tr {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--border);
    padding: 12px 0;
    min-width: inherit;
    width: 100%;
  }

  .table-custom tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border: none;
    align-items: center;
    width: 100%;
  }

  .table-custom tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-500);
    font-size: 11px;
    text-transform: uppercase;
  }

  .table-custom tbody td:last-child {
    flex-wrap: wrap;
    gap: 6px;
  }

  .table-custom tbody td:last-child .d-flex {
    width: 100%;
    justify-content: flex-start;
  }

  tr {
    width: 100%;
  }

  .kpi-value {
    font-size: 1.2rem;
  }

  .col-3 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .modal-dialog {
    margin: 10px;
  }

  .modal-body {
    padding: 16px;
  }

  .card-custom.p-4 {
    padding: 0.75rem !important;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar,
  .topbar-actions,
  .btn-outline-custom,
  .btn-primary-custom {
    display: none !important;
  }

  .main-area {
    margin-left: 0 !important;
  }

  .content {
    padding: 1rem !important;
  }

  .card-custom {
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
  }

  .app-wrapper {
    display: block !important;
  }
}