@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .chat-header,
  .chat-sidebar,
  .chat-input,
  .print-button,
  .print\:hidden {
    display: none !important;
  }

  .min-h-screen {
    background: #fff !important;
    min-height: auto !important;
  }

  .container {
    padding: 0 !important;
  }

  .grid {
    display: block !important;
  }

  .lg\:col-span-3 {
    width: 100% !important;
  }

  .chat-card {
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    height: auto !important;
  }

  .chat-messages {
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
  }

  .message {
    margin-bottom: 8px;
    break-inside: auto;
  }

  .message > div {
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .message-user > div {
    background: #dbeafe;
    border-color: #bfdbfe;
  }

  .message-user {
    break-inside: avoid;
  }

  .message-assistant .content {
    break-inside: auto;
  }

  .message .author {
    font-weight: 700;
    color: #111827;
  }

  .message-assistant .author {
    color: #1d4ed8;
  }

  .message .content {
    color: #000;
  }
}
