/* ===================================================
   BEAJA PRESENSI - MODERN DARK DESIGN SYSTEM & STYLESHEET
   =================================================== */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-dark: #0b0f19;
  --surface-dark: #111827;
  --surface-card: #161f30;
  --border-dark: rgba(255, 255, 255, 0.08);
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
}

* {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Force dark color scheme for native inputs (date picker, selects) */
input, select, textarea {
  color-scheme: dark;
}

/* Custom Minimalist Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #283548;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3e4f68;
}

/* Modern Dark Glassmorphism Panels */
.glass-panel {
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Active Sidebar Navigation Item in Dark Mode */
.nav-tab-active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
  color: #a5b4fc !important;
  font-weight: 700 !important;
  border-left: 3px solid #6366f1 !important;
  box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.1);
}

/* Interactive Card Hover with Subtle Glow */
.interactive-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35) !important;
}

/* Button Micro-interactions */
.btn-press {
  transition: all 0.15s ease;
}
.btn-press:active {
  transform: scale(0.97);
}

/* Mobile Off-Canvas Drawer Transition */
.mobile-drawer-overlay {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Table Responsive Horizontal Scroll Touch Helper */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Print Stylesheet for Official Slip Gaji - Pure Clean White Format */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden;
  }
  #printable-slip, #printable-slip * {
    visibility: visible;
    color: #000000 !important;
  }
  #printable-slip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #ffffff !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
  .no-print {
    display: none !important;
  }
}
