/* Tablet and larger */
@media (min-width: 768px) {
  .text-panels {
    flex-direction: row;
  }
  
  header {
    padding: 32px 24px;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  main {
    padding: 32px 24px;
  }
  
  .panel-content {
    min-height: 200px;
  }
  
  textarea {
    min-height: 200px;
  }
  
  .diff-content {
    min-height: 200px;
  }
}

/* Large tablets and smaller desktops */
@media (min-width: 992px) {
  main {
    padding: 40px 32px;
  }
  
  .panel-content {
    min-height: 200px;
  }
  
  textarea {
    min-height: 200px;
  }
  
  .diff-content {
    min-height: 200px;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .panel-content {
    min-height: 200px;
  }
  
  textarea {
    min-height: 200px;
  }
  
  .diff-content {
    min-height: 200px;
  }
}

/* Small screens and mobile */
@media (max-width: 767px) {
  .panel {
    margin-bottom: 16px;
  }
  
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons button {
    width: 100%;
  }
}

/* Extremely small screens */
@media (max-width: 360px) {
  header h1 {
    font-size: 1.75rem;
  }
  
  .panel-header h2 {
    font-size: 1.1rem;
  }
  
  .stats {
    font-size: 0.75rem;
  }
}

/* Print styles for PDF export */
@media print {
  header, footer, .action-buttons, .panel-footer, .panel-actions {
    display: none;
  }
  
  body, main {
    padding: 0;
    margin: 0;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  .panel {
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  .panel-header {
    border-bottom: 1px solid #000;
  }
  
  .diff-content {
    font-size: 12pt;
    color: black ;
  }
  
  .diff-content .added {
    background-color: #E3F2FD !important;
    border-left: 3px solid #4A90E2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    
  }
  
  .diff-content .deleted {
    background-color: #FFEBEE !important;
    border-left: 3px solid #E25749 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}