* { box-sizing: border-box; margin: 0; padding: 0; }

/* ========================================
   E-OFFICE PROFESSIONAL THEME
   Modern, Clean & Enterprise-Ready
   Enhanced with animations & polish
   ======================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8fafc;
  color: #1a1a1a;
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* Loading animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Apply fade-in to main content */
main {
  animation: fadeIn 0.5s ease-out;
}

/* Marquee/Ticker styles for HR info */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 40s linear infinite;
  font-size: 14px;
  font-weight: 500;
}

.marquee-content span {
  display: inline-block;
  white-space: nowrap;
}

:root {
  /* Logo-matched orange/red palette */
  --primary: #ff6b35;
  --primary-dark: #d73d2d;
  --primary-light: #ff8a5c;
  --accent: #d73d2d;
  --accent-soft: #ffe3d6;
  --accent-amber: #ffb55a;
  
  /* 3-color gradient system */
  --gradient-1: #ff6b35;
  --gradient-2: #d73d2d;
  --gradient-3: #ffb55a;

  /* Grayscale */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Semantic colors */
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 10px -2px rgb(0 0 0 / 0.12);
  --shadow-lg: 0 10px 20px -8px rgb(0 0 0 / 0.2);
  --shadow-xl: 0 20px 30px -12px rgb(0 0 0 / 0.28);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Legacy support */
  --wh-grad: linear-gradient(90deg, #ff6b35, #ff5a3d, #d73d2d);

  /* Bootstrap 5 Custom Properties */
  --bs-primary: #ff6b35;
  --bs-primary-rgb: 255, 107, 53;
  --bs-primary-dark: #d73d2d;
  --bs-primary-dark-rgb: 215, 61, 45;

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Sidebar Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 64px;
  --topbar-height: 56px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ========================================
   BOOTSTRAP 5 CUSTOMIZATIONS
   Using login page color scheme
   ======================================== */

/* Override Bootstrap primary colors */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
  background: linear-gradient(135deg, #ff5a3d 0%, #c73220 100%);
}

.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #d73d2d 0%, #c73220 100%);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #ff8a5c 0%, #e85d4d 100%);
  opacity: 0.6;
}

/* Navbar customizations */
.navbar {
  min-height: 64px;
  padding: 0.75rem 0;
}

.navbar-brand {
  padding: 0.5rem 0;
}

.nav-link {
  color: var(--gray-700) !important;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  position: relative;
  margin: 0 0.125rem;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary) !important;
  background-color: rgba(255, 107, 53, 0.08);
}

.nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(255, 107, 53, 0.12);
}

/* Dropdown menus - consolidated styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  margin-top: 0.5rem;
  min-width: 200px;
  z-index: 1050;
}

.dropdown-menu.show {
  display: block !important;
}

.dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
}

.nav-link.dropdown-toggle,
.nav-link.dropdown-toggle,
button.nav-link.dropdown-toggle {
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle:focus,
button.nav-link.dropdown-toggle:hover,
button.nav-link.dropdown-toggle:focus {
  color: var(--primary) !important;
  background-color: rgba(255, 107, 53, 0.08);
}

button.nav-link {
  font-family: inherit;
  font-size: inherit;
  border: none;
}

.nav-link.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-item {
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 107, 53, 0.1);
  color: var(--primary-dark);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Fix for navbar dropdown positioning */
.navbar-nav .nav-item.dropdown {
  position: relative;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: auto;
  margin-top: 0.5rem;
}

.navbar-nav .dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    margin-top: 0;
    border: none;
    box-shadow: none;
    display: none;
  }
  
  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }
}

/* Cards - Enhanced with animations */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  animation: fadeIn 0.4s ease-out backwards;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.card-header {
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-800);
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

/* Alerts */
.alert {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.25rem;
  font-weight: 500;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-left: 4px solid var(--info);
}

/* Form controls - Enhanced with micro-interactions */
.form-control,
.form-select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15), 0 4px 12px rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: var(--gray-400);
  background-color: var(--gray-50);
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

/* Badges */
.badge {
  padding: 0.375rem 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
}

.bg-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%) !important;
}

/* Tables */
.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  color: var(--gray-700);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  padding: 1rem;
}

.table tbody tr {
  transition: all 0.15s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 107, 53, 0.04);
}

/* Navbar toggler */
.navbar-toggler {
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Pagination */
.page-link {
  color: var(--primary);
  border-color: var(--gray-300);
}

.page-link:hover {
  color: var(--primary-dark);
  background-color: rgba(255, 107, 53, 0.1);
  border-color: var(--primary);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%);
  border-color: var(--primary);
}

/* Text utilities */
.text-wh-primary {
  color: var(--primary) !important;
}

.text-wh-primary-dark {
  color: var(--primary-dark) !important;
}

/* Button variants */
.btn-wh-primary {
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 50%, var(--gradient-3) 100%);
  background-size: 200% 200%;
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-wh-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, var(--gradient-2) 0%, var(--gradient-1) 50%, var(--gradient-3) 100%);
  color: #ffffff;
  animation: none;
}

.btn-wh-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-wh-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
}

/* Bootstrap button overrides with gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 50%, var(--gradient-3) 100%) !important;
  background-size: 200% 200% !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
  transition: all 0.3s ease !important;
  animation: shimmer 3s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.45) !important;
  background: linear-gradient(135deg, var(--gradient-2) 0%, var(--gradient-1) 50%, var(--gradient-3) 100%) !important;
  animation: none;
}

/* Footer enhancements */
footer {
  min-height: auto;
}

footer small {
  font-size: 0.875rem;
}

/* Spacing improvements */
.py-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mb-section {
  margin-bottom: 3rem;
}

/* Accessibility improvements */
:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.4);
  outline-offset: 2px;
}

.visually-hidden-focusable:focus {
  position: absolute !important;
  z-index: 9999;
}

/* PWA Install Button */
#pwa-install-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  transition: all 0.3s ease;
}

#pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
  background: linear-gradient(135deg, #ff5a3d 0%, #c73220 100%);
}

#pwa-install-btn:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  footer .row {
    text-align: center !important;
  }
  
  footer .col-md-6 {
    margin-bottom: 0.5rem;
  }
  
  #pwa-install-btn {
    bottom: 1rem !important;
    right: 1rem !important;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.wh-header {
  background: #ffffff;
  border-bottom: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wh-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wh-logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.wh-logo-img {
  height: 42px;
}

.wh-logo-glow {
  filter: drop-shadow(0 0 4px rgba(255, 128, 0, 0.45)) drop-shadow(0 0 6px rgba(140, 27, 255, 0.35));
}

.wh-header-title {
  font-weight: 800;
  font-size: 1.25rem;
  background-image: var(--wh-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

/* Navigation */
.wh-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}

.wh-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wh-nav a:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.wh-nav-logout {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

.wh-nav-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.wh-nav a:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.3);
  outline-offset: 2px;
}

/* Mobile menu toggle */
.wh-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.wh-mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  transition: all 0.2s ease;
}

.wh-mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wh-mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.wh-mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.wh-main {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.wh-center-layout {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ========================================
   CARDS & SECTIONS
   ======================================== */

.wh-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.wh-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.wh-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wh-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.wh-card-sub {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========================================
   PAGE HEADING
   ======================================== */

.wh-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.wh-page-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.wh-page-heading-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.wh-form, .wh-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wh-form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
}

.wh-form-row.full {
  grid-template-columns: 1fr;
}

.wh-form-row > label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
}

.wh-input, .wh-textarea, select.wh-input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

.wh-input:focus, .wh-textarea:focus, select.wh-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wh-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.wh-readonly {
  padding: 0.625rem 0.875rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-weight: 500;
}

.wh-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wh-inline-separator {
  font-weight: 600;
  color: var(--gray-500);
}

.wh-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.wh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 50%, var(--gradient-3) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.25);
  min-height: 44px;
  letter-spacing: 0.2px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wh-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
  animation: none;
  background: linear-gradient(135deg, var(--gradient-2) 0%, var(--gradient-1) 50%, var(--gradient-3) 100%);
}

.wh-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gradient-3) 0%, var(--gradient-1) 50%, var(--gradient-2) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(255, 181, 90, 0.25);
  min-height: 44px;
  letter-spacing: 0.2px;
  animation: shimmer 3s ease-in-out infinite;
}

.wh-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3);
}

.wh-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%);
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.1px;
  box-shadow: 0 6px 14px rgba(255, 107, 53, 0.2);
  min-height: 38px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wh-btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
  color: #ffffff;
}

.wh-btn-card {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.wh-btn-card:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   BADGES & TAGS
   ======================================== */

.wh-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wh-tag-primary {
  background: var(--primary);
  color: #ffffff;
}

.wh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Task Status Badges */
.wh-badge-todo {
  background: var(--gray-200);
  color: var(--gray-700);
}

.wh-badge-in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.wh-badge-done {
  background: #d1fae5;
  color: #065f46;
}

.wh-badge-blocked {
  background: #fee2e2;
  color: #991b1b;
  animation: pulse-blocked 2s ease-in-out infinite;
}

@keyframes pulse-blocked {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Priority Badges */
.wh-badge-low {
  background: var(--gray-200);
  color: var(--gray-600);
}

.wh-badge-medium {
  background: #fef3c7;
  color: #92400e;
}

.wh-badge-high {
  background: #fee2e2;
  color: #991b1b;
}

.wh-badge-success {
  background: var(--success);
  color: #ffffff;
}

.wh-badge-warning {
  background: var(--warning);
  color: #ffffff;
}

/* ========================================
   WORKLOG CARDS (NEW DESIGN)
   ======================================== */

.wh-worklog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.wh-worklog-card {
  background: #ffffff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.wh-worklog-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.wh-card-header-small {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wh-worklog-user-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.wh-card-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.65;
  font-size: 15px;
}

.wh-worklog-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.wh-worklog-section strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.wh-worklog-text {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.wh-worklog-blockers {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left: 4px solid var(--danger);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.wh-blockers-label {
  color: #991b1b !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.wh-blockers-text {
  color: #7f1d1d;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.wh-empty-state {
  color: var(--gray-500);
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

/* ========================================
   TABLES
   ======================================== */

.wh-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wh-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.wh-table th {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--gray-700);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wh-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.wh-table tbody tr {
  transition: all 0.2s ease;
}

.wh-table tbody tr:hover {
  background: var(--gray-50);
}

.wh-table-empty {
  text-align: center;
  color: var(--gray-500);
  font-style: italic;
  padding: 2rem !important;
}

/* ========================================
   KPI CARDS
   ======================================== */

.wh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.wh-kpi-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out backwards;
}

.wh-kpi-card:nth-child(1) { animation-delay: 0.1s; }
.wh-kpi-card:nth-child(2) { animation-delay: 0.2s; }
.wh-kpi-card:nth-child(3) { animation-delay: 0.3s; }
.wh-kpi-card:nth-child(4) { animation-delay: 0.4s; }

.wh-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ff5a3d, #d73d2d);
  transition: height 0.3s ease;
}

.wh-kpi-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.25);
  border-color: var(--primary);
}

.wh-kpi-card:hover::before {
  height: 6px;
}

.wh-kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.wh-kpi-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: countUp 0.8s ease-out;
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.wh-kpi-sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

.wh-kpi-alert {
  border-color: var(--danger);
}

.wh-kpi-alert .wh-kpi-value {
  color: var(--danger);
}

/* ========================================
   FILTER BAR
   ======================================== */

.wh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.wh-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 180px;
}

.wh-filter-group.flex-grow {
  flex: 1;
}

.wh-filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.wh-filter-btn {
  margin-left: auto;
}

/* ========================================
   PREVIEW SECTION (Worklog)
   ======================================== */

.wh-card-preview {
  border-top: 4px solid var(--primary);
}

.wh-preview {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.wh-preview-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* ========================================
   FLASH MESSAGES
   ======================================== */

.wh-flash-container {
  margin-bottom: 1.5rem;
}

.wh-flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.wh-flash-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid var(--success);
}

.wh-flash-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

/* ========================================
   LINKS
   ======================================== */

.wh-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.wh-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

/* ========================================
   TWO-COLUMN LAYOUT
   ======================================== */

.wh-layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
}

/* ========================================
   AUTH PAGE
   ======================================== */

.wh-auth-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 480px;
  width: 100%;
}

.wh-auth-logo-stack {
  text-align: center;
  margin-bottom: 2rem;
}

.wh-auth-logo {
  height: 200px;
  display: inline-block;
}

.wh-auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.wh-auth-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Generic card/table/alert overrides consolidated above */

/* ========================================
   STATS CARDS
   ======================================== */

.wh-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.wh-stat-card {
  background: #ffffff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.wh-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.wh-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.wh-stat-number.wh-stat-alert {
  color: var(--danger);
}

.wh-stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   TASK DETAIL PAGE
   ======================================== */

.wh-task-detail-grid {
  display: grid;
  gap: 2rem;
}

.wh-detail-section {
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.wh-detail-section:last-child {
  border-bottom: none;
}

.wh-info-grid {
  display: grid;
  gap: 1rem;
}

.wh-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.wh-info-label {
  font-weight: 700;
  color: var(--gray-700);
}

.wh-dependency-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wh-dependency-list li {
  padding: 1rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.wh-dependency-list li:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.wh-comments {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wh-comment {
  padding: 1.25rem;
  background: var(--gray-50);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.wh-comment:hover {
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.wh-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wh-comment-date {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.wh-comment-form {
  margin-top: 1rem;
}

.wh-comment-form .wh-form-control {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}

.wh-comment-form .wh-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .wh-header-inner {
    padding: 1rem;
  }

  .wh-main {
    padding: 0 1rem 2rem;
    margin: 1rem auto;
  }

  .wh-page-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .wh-page-heading h2 {
    font-size: 1.5rem;
  }

  .wh-card {
    padding: 1.25rem 1rem;
  }

  .wh-form-row {
    grid-template-columns: 1fr;
  }

  .wh-layout-two {
    grid-template-columns: 1fr;
  }

  .wh-worklog-grid {
    grid-template-columns: 1fr;
  }

  .wh-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .wh-filter-bar {
    flex-direction: column;
  }

  .wh-filter-group {
    min-width: 100%;
  }

  .wh-filter-btn {
    margin-left: 0;
    width: 100%;
  }

  .wh-table {
    font-size: 0.875rem;
  }

  .wh-table th,
  .wh-table td {
    padding: 0.75rem 0.5rem;
  }

  .wh-info-row {
    grid-template-columns: 1fr;
  }

  .wh-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

  .wh-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 85vw);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 72px 16px 16px;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--gray-200);
    transition: right 0.25s ease;
    z-index: 999;
  }

  .wh-nav.active {
    right: 0;
  }

  .wh-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 100%);
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .wh-page-heading h2 {
    font-size: 1.25rem;
  }

  .wh-card {
    padding: 1rem;
  }

  .wh-kpi-value {
    font-size: 1.75rem;
  }

  .wh-stat-number {
    font-size: 2rem;
  }
}

/* ========================================
   ACCESSIBILITY & UTILITIES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hidden {
  display: none !important;
}

.wh-text-center {
  text-align: center;
}

.wh-text-muted {
  color: var(--gray-500);
}

.wh-mt-1 { margin-top: 0.5rem; }
.wh-mt-2 { margin-top: 1rem; }
.wh-mt-3 { margin-top: 1.5rem; }
.wh-mb-1 { margin-bottom: 0.5rem; }
.wh-mb-2 { margin-bottom: 1rem; }
.wh-mb-3 { margin-bottom: 1.5rem; }

/* Print Styles */
@media print {
  .wh-header,
  .wh-nav,
  .wh-btn-primary,
  .wh-btn-secondary,
  .wh-filter-bar {
    display: none;
  }

  .wh-card {
    box-shadow: none;
    border: 1px solid var(--gray-200);
  }
}


/* Status blocks aligned to login theme */
.wh-status-success,
.wh-status-warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.wh-status-success {
  border-left: 4px solid var(--primary);
}

.wh-status-warning {
  border-left: 4px solid var(--accent);
}

.wh-status-icon {
  font-weight: 700;
  color: var(--primary);
}

.wh-status-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.wh-status-text {
  color: var(--gray-600);
}

.wh-status-active {
  color: var(--primary-dark);
  font-weight: 700;
}

.wh-status-inactive {
  color: var(--danger);
  font-weight: 700;
}

.wh-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   RIPPLE EFFECT
   ======================================== */

.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   UTILITIES
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Improved focus states for accessibility */
*:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes shimmerLoad {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

/* ========================================
   SCROLL ENHANCEMENTS
   ======================================== */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ========================================
   SIDEBAR NAVIGATION LAYOUT
   ======================================== */

.wh-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--transition-normal), width var(--transition-normal);
  overflow: hidden;
}

.wh-sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.wh-sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gray-900);
}

.wh-sidebar-logo {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

.wh-sidebar-brand-text {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gray-900);
  white-space: nowrap;
}

.wh-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.wh-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wh-sidebar-section-label {
  padding: 1.25rem 1.5rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.wh-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.wh-sidebar-link i {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.wh-sidebar-link:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

.wh-sidebar-link.active {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.06);
  border-left-color: var(--primary);
  font-weight: 600;
}

.wh-sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wh-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--gray-700);
  flex: 1;
  min-width: 0;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.wh-sidebar-user:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.wh-sidebar-avatar {
  font-size: 1.5rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.wh-sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wh-sidebar-user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-sidebar-user-role {
  font-size: 0.6875rem;
  color: var(--gray-400);
}

.wh-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wh-sidebar-logout:hover {
  background: #fee2e2;
  color: var(--danger);
}

.wh-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.wh-sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ===== TOP BAR ===== */

.wh-topbar {
  height: var(--topbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.wh-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wh-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.wh-sidebar-toggle:hover {
  background: var(--gray-100);
}

.wh-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wh-topbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  font-size: 1.125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.wh-topbar-icon:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.wh-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wh-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.wh-topbar-user:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.wh-topbar-user i:first-child {
  font-size: 1.25rem;
}

/* ===== CONTENT WRAPPER ===== */

.wh-content-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
}

.wh-main-content {
  flex: 1;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.wh-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  text-align: center;
  background: #ffffff;
}

/* ===== TICKER ===== */

.wh-ticker {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  overflow: hidden;
}

/* ===== TOAST NOTIFICATIONS ===== */

.wh-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.wh-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--gray-300);
  pointer-events: auto;
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.wh-toast-show {
  transform: translateX(0);
  opacity: 1;
}

.wh-toast-hide {
  transform: translateX(110%);
  opacity: 0;
}

.wh-toast-success { border-left-color: var(--success); }
.wh-toast-danger  { border-left-color: var(--danger); }
.wh-toast-warning { border-left-color: var(--warning); }
.wh-toast-info    { border-left-color: var(--info); }

.wh-toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wh-toast-success .wh-toast-icon { color: var(--success); }
.wh-toast-danger .wh-toast-icon  { color: var(--danger); }
.wh-toast-warning .wh-toast-icon { color: var(--warning); }
.wh-toast-info .wh-toast-icon    { color: var(--info); }

.wh-toast-body {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
}

.wh-toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.wh-toast-close:hover {
  color: var(--gray-700);
}

/* ===== LOADING BAR ===== */

.wh-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-amber), var(--primary));
  background-size: 200% 100%;
  z-index: 9999;
  transition: width 0.2s ease;
  animation: shimmerBar 1.5s linear infinite;
}

.wh-loading-bar.active {
  width: 85%;
  transition: width 8s cubic-bezier(0.1, 0.5, 0.3, 1);
}

@keyframes shimmerBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== AUTH LAYOUT ===== */

.wh-auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
}

/* ===== SIDEBAR RESPONSIVE ===== */

@media (max-width: 991.98px) {
  .wh-sidebar {
    transform: translateX(-100%);
  }

  .wh-sidebar.open {
    transform: translateX(0);
  }

  .wh-sidebar-toggle {
    display: flex;
  }

  .wh-content-wrapper {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .wh-sidebar-backdrop {
    display: none;
  }
}

/* ========================================
   AUTH SPLIT-PANEL (Login / Register)
   ======================================== */

.wh-auth-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.wh-auth-brand-panel {
  flex: 1;
  background: linear-gradient(135deg, #ff6b35 0%, #d73d2d 60%, #ff8a5c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.wh-auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.wh-auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.wh-auth-brand-logo {
  max-width: 180px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.wh-auth-brand-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.wh-auth-brand-tagline {
  font-size: 1rem;
  opacity: 0.9;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.wh-auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
}

.wh-auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.wh-auth-form-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.wh-auth-form-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.wh-auth-input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.wh-auth-input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.wh-auth-input-group .wh-input,
.wh-auth-input-group .form-control {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wh-auth-input-group .wh-input:focus,
.wh-auth-input-group .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wh-auth-input-icon {
  position: absolute;
  right: 0.875rem;
  bottom: 0.8rem;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1rem;
}

.wh-auth-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wh-auth-actions .wh-btn-primary,
.wh-auth-actions .btn-primary {
  flex: 1;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.wh-auth-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--gray-100);
}

.wh-password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-100);
  margin-top: 0.5rem;
  overflow: hidden;
}

.wh-password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
}

@media (max-width: 768px) {
  .wh-auth-split {
    flex-direction: column;
  }

  .wh-auth-brand-panel {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .wh-auth-brand-logo {
    max-width: 120px;
    margin-bottom: 1rem;
  }

  .wh-auth-brand-title {
    font-size: 1.5rem;
  }

  .wh-auth-form-panel {
    padding: 1.5rem;
  }
}

/* ========================================
   COMPONENT REFINEMENTS (Phase 4)
   ======================================== */

/* KPI Cards - Icon Circle */
.wh-kpi-card {
  position: relative;
}

.wh-kpi-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.wh-kpi-icon-circle.primary { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.wh-kpi-icon-circle.success { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.wh-kpi-icon-circle.warning { background: rgba(217, 119, 6, 0.1); color: var(--warning); }
.wh-kpi-icon-circle.danger  { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.wh-kpi-icon-circle.info    { background: rgba(37, 99, 235, 0.1); color: var(--info); }

/* Tables - Zebra Stripes & Hover */
.wh-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.wh-table tbody tr:hover {
  background: rgba(255, 107, 53, 0.04);
}

/* Forms */
.wh-form-group {
  position: relative;
}

/* Cards - Toned down hover */
.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: none;
  border-color: var(--gray-300);
}

.wh-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
  cursor: pointer;
}

/* ========================================
   KANBAN BOARD (extracted from inline)
   ======================================== */

.wh-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.wh-kanban-column {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 400px;
}

.wh-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: 700;
}

.wh-column-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.wh-column-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.wh-column-todo {
  background: linear-gradient(135deg, #ff9b74, #ff6b35);
}

.wh-column-progress {
  background: linear-gradient(135deg, #ff6b35, #ff5a3d);
}

.wh-column-done {
  background: linear-gradient(135deg, #ff8a5c, #d73d2d);
}

.wh-column-blocked {
  background: linear-gradient(135deg, #d73d2d, #b91c1c);
}

.wh-kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.wh-kanban-card {
  background: #ffffff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.wh-kanban-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.wh-card-done {
  opacity: 0.7;
}

.wh-kanban-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.wh-task-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
}

.wh-kanban-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}

.wh-kanban-card-desc {
  margin: 0 0 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.wh-kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.wh-assignee, .wh-due-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.wh-btn-group {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 1280px) {
  .wh-kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wh-kanban-board {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   EXTRACTED INLINE STYLES (Phase 7)
   ======================================== */

/* -- analytics/dashboard.html -- */
.metric-card {
  border-left: 4px solid #007bff;
  padding: 20px;
  margin-bottom: 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.metric-card.success { border-left-color: var(--success); }
.metric-card.warning { border-left-color: var(--warning); }
.metric-card.danger  { border-left-color: var(--danger); }
.metric-card.info    { border-left-color: var(--info); }

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-800);
}
.metric-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* -- analytics/employee.html -- */
.stat-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  text-align: center;
}
.stat-box.green  { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-box.blue   { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-box.orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0;
}
.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.chart-box {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* -- calendar/view.html -- */
.fc { font-family: inherit; }
.fc-button-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.event-task    { background-color: var(--info); }
.event-leave   { background-color: var(--success); }
.event-worklog { background-color: #17a2b8; }
.calendar-container {
  background: white;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* -- admin/users.html -- */
.wh-badge-it_admin,
.wh-badge-director,
.wh-badge-it_head,
.wh-badge-employee,
.wh-badge-project_manager,
.wh-badge-business_analyst,
.wh-badge-implementation_engineer,
.wh-badge-system_admin {
  background: #ffe3d6;
  color: #d73d2d;
}

/* -- admin/user_form.html -- */
.wh-admin-form-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 12px 36px;
}
.wh-page-heading--center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wh-eyebrow {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.wh-admin-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.07);
  padding: 28px;
  border: 1px solid var(--gray-100);
}
.wh-card-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.wh-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 18px;
  margin-top: 8px;
}
.wh-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wh-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-700);
}
.wh-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform var(--transition-fast), box-shadow 0.2s ease;
}
.wh-btn:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .wh-admin-card { padding: 22px; }
  .wh-card-grid { grid-template-columns: 1fr; }
  .wh-page-heading--center { flex-direction: column; align-items: flex-start; }
}

/* -- attendance/team.html -- */
.wh-badge-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

/* -- profiles/review_form.html -- */
.rating-option {
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
  text-align: center;
}
.rating-option:hover {
  border-color: var(--info);
  background: var(--gray-50);
}
.rating-option input:checked + label {
  font-weight: bold;
}
.rating-option:has(input:checked) {
  border-color: var(--info);
  background: rgba(13, 110, 253, 0.1);
}

/* -- profiles/review_detail.html -- */
.rating-card {
  transition: all 0.2s;
}
.rating-card:hover {
  background: var(--gray-200) !important;
}

/* -- profiles/view.html -- */
.info-item {
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.info-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.rating-stars i {
  font-size: 1.1rem;
}

/* -- worklogs/my_status.html -- */
.border-left-danger {
  border-left: 4px solid var(--danger) !important;
}
.space-y-3 > * + * {
  margin-top: 1rem;
}

/* -- worklogs/my_worklog_enhanced.html -- */
.wh-autosave-status {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

.wh-autosave-icon {
  font-size: 1.25rem;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.wh-tips-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
}
.wh-tips-box h4 {
  margin: 0 0 0.75rem 0;
  color: var(--gray-900);
  font-size: 1rem;
}
.wh-tips-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--gray-700);
}
.wh-tips-box li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* -- task_tracker/audit_trail.html -- */
.timeline-item {
  position: relative;
  padding-left: 0;
}
.timeline-item:last-child {
  border-bottom: none;
}

/* -- notification_bell.html -- */
.notification-container {
  position: relative;
  display: inline-block;
}
.notification-bell {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-800);
  padding: 0.5rem;
  position: relative;
  transition: color var(--transition-fast);
}
.notification-bell:hover { color: var(--primary); }
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}
.notification-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 0.5rem;
  max-height: 500px;
  display: flex;
  flex-direction: column;
}
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.notification-header h6 { margin: 0; font-size: 1rem; font-weight: 600; }
.notification-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 0;
}
.notification-list { overflow-y: auto; flex: 1; min-height: 100px; }
.notification-item {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.notification-item:hover { background-color: var(--gray-50); }
.notification-item.unread { background-color: #fff3e6; }
.notification-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.notification-item-message { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.notification-item-time { font-size: 0.75rem; color: var(--gray-400); }
.notification-delete {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}
.notification-delete:hover { color: var(--danger); }
.notification-empty { padding: 2rem 1rem; text-align: center; color: var(--gray-400); }
.notification-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}
.notification-action {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: none;
}
.notification-action:hover { text-decoration: underline; }
.notification-type-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}
.notification-type-worklog,
.notification-type-task {
  background-color: #ffe3d6;
  color: #d73d2d;
}

@media (max-width: 768px) {
  .notification-panel {
    position: fixed;
    top: 60px;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
  }
  .notification-bell { padding: 0.4rem; font-size: 1.1rem; }
  .notification-item { padding: 0.85rem; }
  .notification-item-title { font-size: 0.9rem; }
  .notification-item-message { font-size: 0.8rem; }
  .notification-header h6 { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .notification-panel {
    top: 55px;
    max-height: calc(100vh - 70px);
  }
}

/* -- privacy.html -- */
.privacy-hero {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  padding: 60px 0 40px;
}
.privacy-hero h1 { font-weight: 800; font-size: 2.5rem; }
.privacy-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.privacy-hero .breadcrumb-item.active { color: #fff; }
.privacy-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px 48px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.privacy-card h3 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.privacy-card h3:first-of-type { margin-top: 0; }
.privacy-card p { color: var(--gray-600); line-height: 1.8; }
.privacy-footer {
  background: #222;
  color: #aaa;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}
.privacy-footer a { color: var(--primary); text-decoration: none; }
.back-btn { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

@media (max-width: 768px) {
  .privacy-card { padding: 24px 20px; margin-top: -20px; }
  .privacy-hero h1 { font-size: 1.75rem; }
}
