.ProseMirror {
    background-color: white;
    color: black;
    font-size: 1rem; /* Reduced from 1.5rem to 1rem for better readability */
    line-height: 1.5; /* Improves text spacing */
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem; /* Adjusted for a more balanced look */
  }
  
  /* Additional Optimization */
  .ProseMirror p {
    margin-bottom: 0.5rem; /* Adds spacing between paragraphs */
  }
  
  .ProseMirror h1 {
    font-size: 1.5rem; /* Slightly larger for headings */
    font-weight: bold;
  }
  
  .ProseMirror h2 {
    font-size: 1.25rem;
    font-weight: bold;
  }
  .ProseMirror h3 {
    font-size: 1rem;
    font-weight: bold;
  }
  
  .ProseMirror ul,
  .ProseMirror ol {
    padding-left: 1.25rem; /* Aligns list items properly */
  }

  .ProseMirror table {
    width: 100%;
    max-width: 100%; /* Prevents table from exceeding container */
    border-collapse: collapse;
    border: 1px solid #ddd;
  }
  
  .ProseMirror td,
  .ProseMirror th {
    border: 1px solid #ddd;
    padding: 8px;
    word-break: break-word; /* Prevents long text from breaking layout */
  }
  
  .ProseMirror th {
    background-color: #f3f4f6; /* Light gray background */
    text-align: left;
  }
  .ProseMirror iframe {
    max-width: 100%; /* Ensures it doesn't exceed form width */
    height: auto;
    aspect-ratio: 16 / 9; /* Maintains correct proportions */
  }