/* styles.css - Custom styling for California Rental Application */

:root {
  --app1-accent: #2563eb;
  --app2-accent: #7c3aed;
}

/* Custom smooth transitions for inputs */
input, select, textarea, button {
  transition: all 0.15s ease-in-out;
}

/* SSN and Number inputs formatting */
.ssn-input {
  letter-spacing: 0.12em;
}

/* Signature Pad container */
.signature-pad-container {
  touch-action: none;
  user-select: none;
  background-color: #ffffff;
}

.signature-pad-container canvas {
  display: block;
  width: 100%;
}

/* Highlight focused column */
.applicant-col-focus-1:focus-within {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.applicant-col-focus-2:focus-within {
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* File Upload Dropzones */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: #0284c7;
  background-color: #f0f9ff;
}

.upload-dropzone.app1-dropzone:hover, .upload-dropzone.app1-dropzone.dragover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.upload-dropzone.app2-dropzone:hover, .upload-dropzone.app2-dropzone.dragover {
  border-color: #8b5cf6;
  background-color: #f5f3ff;
}

/* Document Chip */
.doc-file-item {
  animation: fadeIn 0.2s ease-out;
}

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

/* Custom scrollbar for legal notice box */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================ */
/* PRINT STYLES - Formatted for standard paper (C.A.R. Style)   */
/* ============================================================ */
@media print {
  /* Hide interactive web chrome, landing, admin & buttons */
  header,
  #viewLanding,
  #viewAdmin,
  #adminInspectModal,
  #adminPinModal,
  #systemOtpAlert,
  #dualColumnStickyHeader,
  #btnLoadSample,
  #btnClearForm,
  #btnPrint,
  #btnDownloadJson,
  #btnSubmitApplication,
  #submissionModal,
  .upload-dropzone,
  .doc-remove-btn,
  footer,
  button {
    display: none !important;
  }

  #viewApplication {
    display: block !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force display of both applicant columns */
  .grid {
    display: grid !important;
  }

  /* Ensure borders and backgrounds print cleanly */
  .bg-white, .bg-slate-50, .bg-slate-100 {
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .border, .border-2, .border-slate-200, .border-slate-300 {
    border-color: #94a3b8 !important;
  }

  /* Print header replacement */
  body::before {
    content: "CALIFORNIA RESIDENTIAL LEASE APPLICATION & SCREENING DISCLOSURE (C.A.R. FORM LRA & BIRN)";
    display: block;
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 15px;
    padding-bottom: 5px;
  }

  input, select, textarea {
    border: none !important;
    border-bottom: 1px solid #475569 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000 !important;
    font-weight: 600 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-break {
    page-break-before: always;
  }
}
