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

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Signature Pad Canvas Styling */
.signature-wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.dark .signature-wrapper {
  background-color: #0f172a;
}

.signature-canvas {
  width: 100%;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
  background: transparent;
}

.signature-line {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
  pointer-events: none;
}

.signature-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: #94a3b8;
  pointer-events: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Glassmorphism & UI Accents */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glow-indigo {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.25);
}

.dark .glow-indigo {
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.35);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Specific Rules */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }
  
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  
  .no-print, 
  nav, 
  header, 
  aside, 
  .sidebar, 
  button, 
  .print-hide {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .doc-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
  }
  
  /* Force high-contrast text on print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
