/* Custom styles for Temovate HRMS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #f1f5f9; /* Slate-100 for premium contrast */
  --bg-card: #ffffff;  /* Solid white cards to pop off the background */
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  
  --primary: #4f46e5; /* Indigo Accent */
  --primary-glow: rgba(99, 102, 241, 0.12);
  --secondary: #9333ea; /* Purple Accent */
  --emerald: #059669; /* Success Green */
  --rose: #e11d48; /* Danger Rose */
  --amber: #d97706; /* Warning Amber */
  --cyan: #0891b2; /* Info Cyan */
  
  --text-main: #0f172a; /* Slate-900 for high-contrast premium text */
  --text-muted: #475569; /* Slate-600 */
  --text-dark: #64748b; /* Slate-500 */
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.06) 0px, transparent 40%),
    radial-gradient(at 90% 80%, rgba(168, 85, 247, 0.06) 0px, transparent 40%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* Utilities */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.03), 
    0 10px 15px -3px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

.glow-indigo {
  box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.18);
  color: var(--emerald);
}
.btn-success:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: var(--emerald);
}

.btn-danger {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.18);
  color: var(--rose);
}
.btn-danger:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--rose);
}

/* Badge Layouts */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(5, 150, 105, 0.08); color: var(--emerald); border: 1px solid rgba(5, 150, 105, 0.15); }
.badge-danger { background: rgba(225, 29, 72, 0.08); color: var(--rose); border: 1px solid rgba(225, 29, 72, 0.15); }
.badge-warning { background: rgba(217, 119, 6, 0.08); color: var(--amber); border: 1px solid rgba(217, 119, 6, 0.15); }
.badge-info { background: rgba(8, 145, 178, 0.08); color: var(--cyan); border: 1px solid rgba(8, 145, 178, 0.15); }
.badge-primary { background: rgba(79, 70, 229, 0.08); color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.15); }

/* Main Shell Structure */
#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Views display controls */
.view-section {
  display: none;
}
.view-section.active {
  display: block;
}

/* Corporate Landing Page */
#landing-view {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

#landing-view.active {
  display: flex;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 15px var(--primary-glow);
}

.landing-nav-actions {
  display: flex;
  gap: 16px;
}

.hero-section {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 40px 8%;
  gap: 60px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
}

.hero-mockup {
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: var(--transition-normal);
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot-red { background-color: var(--rose); }
.mockup-dot-yellow { background-color: var(--amber); }
.mockup-dot-green { background-color: var(--emerald); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px 8%;
  background: rgba(0, 0, 0, 0.02);
}

.feature-card {
  padding: 40px 30px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.02), 
    0 10px 15px -3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 
    0 20px 25px -5px rgba(15, 23, 42, 0.08), 
    0 0 0 1px rgba(99, 102, 241, 0.1);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.landing-footer {
  padding: 40px 8%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* Wizard Styling */
#wizard-view {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

#wizard-view.active {
  display: flex;
}

.wizard-card {
  width: 100%;
  max-width: 650px;
  border-radius: 20px;
  padding: 40px;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-step-line-active {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 2;
  transition: width var(--transition-normal);
  width: 0%;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3;
  transition: var(--transition-normal);
  color: var(--text-dark);
}

.wizard-step-node.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.wizard-step-node.completed {
  border-color: var(--emerald);
  color: #fff;
  background: var(--emerald);
}

.wizard-tab {
  display: none;
}

.wizard-tab.active {
  display: block;
}

.wizard-header {
  margin-bottom: 24px;
}

.wizard-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.wizard-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

select.form-control option {
  background-color: #ffffff;
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Dashboard Shell styling */
#dashboard-shell {
  display: none;
  min-height: 100vh;
}

#dashboard-shell.active {
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.sidebar-link:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.sidebar-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.01);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Dashboard Panel */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-header {
  height: 80px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 100;
}

.header-title-container h2 {
  font-size: 1.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.org-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.org-logo-preview-header {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--primary);
  display: inline-block;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
}

.view-container {
  padding: 40px;
  flex: 1;
}

/* Grid Layouts */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.metric-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.metric-icon.indigo { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.metric-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--secondary); }
.metric-icon.emerald { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }
.metric-icon.rose { background: rgba(244, 63, 94, 0.1); color: var(--rose); }
.metric-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--cyan); }
.metric-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cards & Layout sections */
.grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-bottom: 32px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 16px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Staff Clock in/out widget */
.clock-widget {
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digital-clock {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 15px 0;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.clock-timer {
  font-family: monospace;
  font-size: 1.3rem;
  color: var(--emerald);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.clock-timer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  animation: pulse-active 1.5s infinite;
}

@keyframes pulse-active {
  0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-whatsapp {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.clock-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  margin-top: 24px;
}

.clock-status-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Face Scan Modal Overlay */
.scan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.scan-modal {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scan-camera-sim {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  margin: 30px auto;
  position: relative;
  background: #0f172a;
  border: 4px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.scan-video-sim {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(20%) brightness(90%);
}

.scan-avatar-placeholder {
  font-size: 5rem;
  color: rgba(255,255,255,0.1);
  position: absolute;
  z-index: 1;
}

.scan-ring-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  border: 2px dashed rgba(99, 102, 241, 0.3);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.scan-target-box {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  border: 2px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
  z-index: 5;
  transition: var(--transition-normal);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
  z-index: 8;
  animation: scan-vertical 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}

@keyframes scan-vertical {
  0% { top: 15%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.scanning .scan-line {
  opacity: 1;
}

.scanning .scan-ring-container {
  border-color: var(--primary);
  animation: spin 6s linear infinite;
  box-shadow: 0 0 20px var(--primary-glow);
}

.scan-success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 2.5rem;
  margin: 30px auto;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

@keyframes scaleUp {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Sidebar & Dashboard Widgets */
.leave-progress-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.leave-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

.progress-casual { background: linear-gradient(90deg, #6366f1, #818cf8); }
.progress-medical { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-privilege { background: linear-gradient(90deg, #a855f7, #c084fc); }

/* Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(255,255,255,0.015);
}

.staff-info-td {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Modal Side panels */
.slide-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: none;
}

.slide-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  padding: 30px;
}

.slide-panel.open {
  right: 0;
}

.slide-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 16px;
}

.slide-panel-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Directory Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.directory-card {
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-normal);
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.directory-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  border: 2px solid rgba(255,255,255,0.1);
}

.directory-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.directory-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.directory-email {
  font-size: 0.8rem;
  color: var(--primary);
  word-break: break-all;
  display: block;
}

/* Filter console */
.filter-console {
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-item {
  flex: 1;
  min-width: 180px;
}

/* Floating role switcher for testing */
.floating-demo-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  border-radius: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(99, 102, 241, 0.2);
  width: 280px;
}

.demo-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-widget-toggle {
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--primary);
}

/* Login View layout */
#login-view {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-main);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
}
#login-view.active {
  display: flex;
}
.login-card {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 0 30px var(--primary-glow);
}

/* Frozen Account layout */
#frozen-view {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at center, rgba(244, 63, 94, 0.04) 0%, transparent 60%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}
#frozen-view.active {
  display: flex;
}

.frozen-card {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 0 30px rgba(244, 63, 94, 0.03);
}

.frozen-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.06);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px;
  border: 1px solid rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.frozen-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.frozen-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Tab contents */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Pending list approval cards */
.pending-leave-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.leave-request-card {
  border-radius: 12px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.leave-request-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.leave-request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.leave-request-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.leave-request-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* System Notifications */
.notifications-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
  width: 100%;
}

.toast {
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideInToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.toast i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes slideInToast {
  0% { transform: translateX(120%); }
  100% { transform: translateX(0); }
}

.toast.success { background: #ffffff; border: 1px solid rgba(16, 185, 129, 0.25); border-left: 5px solid var(--emerald); }
.toast.success i { color: var(--emerald); }
.toast.success p { color: #0f172a; }

.toast.info { background: #ffffff; border: 1px solid rgba(6, 182, 212, 0.25); border-left: 5px solid var(--cyan); }
.toast.info i { color: var(--cyan); }
.toast.info p { color: #0f172a; }

.toast.error { background: #ffffff; border: 1px solid rgba(244, 63, 94, 0.25); border-left: 5px solid var(--rose); }
.toast.error i { color: var(--rose); }
.toast.error p { color: #0f172a; }

/* Logo configuration container */
.logo-upload-box {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px dashed rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.logo-upload-box:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.logo-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.org-logo-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: 0 0 15px var(--primary-glow);
  background-size: cover;
  background-position: center;
}

/* Modal and dialog grids */
.modal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Responsive sidebar fixes for smaller viewports */
@media(max-width: 1024px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    display: none; /* Hide interactive demo in compact views, fallback to listing */
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    width: 260px;
  }
  .main-content {
    margin-left: 0;
  }
  .main-header {
    padding: 0 20px;
  }
  .view-container {
    padding: 20px;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
}

/* Landing Page Sub-navigation Links */
.landing-nav-links {
  display: flex;
  gap: 24px;
}
.landing-nav-links .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}
.landing-nav-links .nav-link:hover,
.landing-nav-links .nav-link.active {
  color: var(--text-main);
}
.landing-nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.landing-nav-links .nav-link.active::after,
.landing-nav-links .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Subpages Container & Display Transitions */
#landing-subpages-container {
  position: relative;
  width: 100%;
  flex: 1;
}
.landing-subpage {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  width: 100%;
}
.landing-subpage.active {
  display: block;
  opacity: 1;
}

/* Why We Are Better HRMS Grid Layout */
.why-us-section {
  padding: 80px 8%;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.015);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-main);
}
.section-header p {
  color: var(--text-muted);
  max-width: 600px;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.02), 
    0 10px 15px -3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-fast);
}
.why-card:hover::before {
  opacity: 1;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: 
    0 20px 25px -5px rgba(15, 23, 42, 0.08), 
    0 0 0 1px rgba(99, 102, 241, 0.1);
}
.why-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.why-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Product Screenshot Cards Gallery */
.screenshots-section {
  padding: 80px 8%;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.02);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.screenshot-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 30px -10px var(--primary-glow);
}
.screenshot-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.02);
}
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}
.screenshot-card:hover .screenshot-img {
  transform: scale(1.05);
}
.screenshot-info {
  padding: 20px;
  flex: 1;
}
.screenshot-info h5 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.screenshot-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Pricing Section Card Layouts */
.pricing-section {
  padding: 80px 8%;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.pricing-card {
  border-radius: 16px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.02), 
    0 10px 15px -3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transition: var(--transition-normal);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 25px -5px rgba(15, 23, 42, 0.08), 
    0 0 0 1px rgba(99, 102, 241, 0.1);
}
.pricing-card.popular {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 
    0 4px 6px -1px rgba(99, 102, 241, 0.03), 
    0 10px 15px -3px rgba(99, 102, 241, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}
.pricing-card.popular:hover {
  box-shadow: 
    0 20px 30px -5px rgba(99, 102, 241, 0.2), 
    0 0 0 1px var(--primary);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.pricing-header h4 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
.pricing-header .price {
  font-size: 2.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
}
.pricing-header .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.pricing-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
  min-height: 48px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 35px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.pricing-features li i.feature-ok {
  color: var(--emerald);
  width: 18px;
  height: 18px;
}
.pricing-features li i.feature-no {
  color: var(--rose);
  width: 18px;
  height: 18px;
  opacity: 0.5;
}
.pricing-action {
  width: 100%;
}

/* Contact Us Grid & Forms */
.contact-section {
  padding: 80px 8%;
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info-panel {
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-panel h4 {
  font-size: 1.5rem;
  color: var(--text-main);
}
.contact-info-panel p {
  color: var(--text-muted);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-detail-item i {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.contact-detail-item span {
  color: var(--text-main);
  font-size: 0.95rem;
}
.contact-form-panel {
  padding: 40px;
  border-radius: 16px;
}

/* Legal Documents & Layout Policies */
.policy-section {
  padding: 80px 8%;
  max-width: 900px;
  margin: 0 auto;
}
.policy-content {
  padding: 40px;
  border-radius: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* Responsive Overrides for CMS and Grids */
@media(max-width: 1024px) {
  .pricing-grid,
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .pricing-grid,
  .screenshots-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  .landing-nav-links {
    width: 100%;
    justify-content: center;
  }
}

@keyframes float-animation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-mockup {
  animation: float-animation 6s ease-in-out infinite;
}


