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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-app: #F8F9FD;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #F1F5F9;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

/* Modern Card System */
.app-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid #EEF2F6;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.06), 0 10px 15px -5px rgba(0, 0, 0, 0.03);
}

/* Pastel Theme Palette */
.pastel-blue {
  background-color: #EBF4FF;
  color: #1E40AF;
  border: 1px solid #DBEAFE;
}
.pastel-green {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #D1FAE5;
}
.pastel-peach {
  background-color: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FFEDD5;
}
.pastel-purple {
  background-color: #F5F3FF;
  color: #5B21B6;
  border: 1px solid #EDE9FE;
}
.pastel-rose {
  background-color: #FFF1F2;
  color: #9F1239;
  border: 1px solid #FFE4E6;
}
.pastel-yellow {
  background-color: #FEFCE8;
  color: #854D0E;
  border: 1px solid #FEF08A;
}

/* Floating Bottom Navigation Bar */
.floating-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 430px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 1px rgba(0,0,0,0.05);
  z-index: 40;
  padding: 6px 10px;
}

.fab-center-btn {
  background: #18181B;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -3px rgba(24, 24, 27, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.fab-center-btn:active {
  transform: scale(0.92);
}

/* Timeline Components */
.timeline-item {
  position: relative;
  padding-left: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: -16px;
  width: 2px;
  background: #E2E8F0;
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #6366F1;
  z-index: 2;
}

/* Tab Switching */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Print Stylesheet */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .no-print, header, nav, #pin-screen, #app-navigation, button, .modal-backdrop, .floating-dock {
    display: none !important;
  }
  #court-report-printable {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Time Range Inputs without bulky WebKit icons */
.time-range-input::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
}
.time-range-input {
  -moz-appearance: textfield;
}

/* Hide scrollbars for slick mobile sliders */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}