/* styles.css - Custom styling and Print Stylesheet matching PDF */

/* Custom typography & feel */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Lined paper notes aesthetic */
.lined-paper {
  background-attachment: local;
  background-image: linear-gradient(to bottom, transparent 23px, #e2e8f0 24px);
  background-size: 100% 24px;
  line-height: 24px;
}

/* PDF Card Aesthetic */
.pdf-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.pdf-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.pdf-field-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
}

.pdf-field-underline {
  border-bottom: 1.5px solid #64748b;
  min-height: 1.5rem;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
}

/* Print Stylesheet matching the exact PDF sheet layout */
@media print {
  @page {
    size: letter portrait;
    margin: 0.4in;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  /* Hide screen UI elements */
  header, footer, nav, button, select, input[type="search"],
  #appointment-search, .print\:hidden, #auth-view, #ws-dropdown-btn,
  .no-print {
    display: none !important;
  }

  #app-view {
    display: block !important;
  }

  #view-seminar-detail {
    display: block !important;
  }

  #container-sheet-view {
    display: block !important;
  }

  #container-table-view {
    display: none !important;
  }

  /* PDF Title Layout */
  #sheet-header-title, #sheet-header-date {
    border-bottom: 2px solid #000000 !important;
    font-weight: bold !important;
  }

  /* Force 2-column grid in print */
  #sheet-appointments-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16pt !important;
  }

  .pdf-card {
    border: 1.5px solid #000000 !important;
    border-radius: 4px !important;
    padding: 12pt !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .pdf-field-label {
    color: #000000 !important;
    font-size: 9pt !important;
  }

  .pdf-field-underline {
    border-bottom: 1px solid #000000 !important;
  }

  .lined-paper {
    background-image: linear-gradient(to bottom, transparent 19px, #94a3b8 20px) !important;
    background-size: 100% 20px !important;
    line-height: 20px !important;
  }
}
