/* Custom App Styles - Exact Template Fidelity */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --paper-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Document Paper Styling - Authentic Word Document Look */
.doc-page {
  background: #ffffff;
  box-shadow: var(--paper-shadow);
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 52px;
  border-radius: 2px;
  font-family: 'Calibri', 'Arial', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #000000;
  min-height: 1100px;
  border: 1px solid #cbd5e1;
}

.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 11px;
}

.doc-page th, .doc-page td {
  border: 1px solid #000000;
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
}

.doc-page th {
  background-color: #f1f5f9;
  font-weight: bold;
}

/* Highlighted preview badge */
.highlight-field-preview {
  background-color: #fef08a;
  color: #854d0e;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
  transition: all 0.15s ease;
  border-bottom: 2px solid #eab308;
}

.highlight-field-preview.modified {
  background-color: #dbeafe;
  color: #1e40af;
  border-bottom-color: #3b82f6;
}

.clean-mode .highlight-field-preview {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-weight: inherit !important;
  border-bottom: none !important;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Form input focus styling */
.form-input-custom:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

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

.animate-fade-in {
  animation: fadeIn 0.15s ease-out forwards;
}

/* Print Styling for PDF export */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .doc-page {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}
