@media print {
  /* Hide non-essential elements */
  [data-controller*="pm--sidebar"],
  .pm-sidebar,
  nav,
  .fixed,
  button[type="submit"],
  [data-turbo-frame],
  .group-hover\:flex,
  .group-hover\:block {
    display: none !important;
  }

  /* Reset background and text colors */
  body {
    background: white !important;
    color: black !important;
  }

  .dark\:bg-gray-900,
  .dark\:bg-gray-800,
  .bg-gray-50 {
    background: white !important;
  }

  .dark\:text-white,
  .dark\:text-gray-200,
  .dark\:text-gray-300 {
    color: black !important;
  }

  /* Task card print layout */
  .bg-white {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    break-inside: avoid;
  }

  /* Full width for content */
  .container,
  .max-w-2xl,
  .max-w-3xl {
    max-width: 100% !important;
  }

  /* Show URLs for links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #6b7280;
  }

  /* Hide hover-only elements */
  .hover\:shadow-md {
    box-shadow: none !important;
  }
}
