body {
        font-family: Arial, sans-serif;
        margin: 20px;
        background: #f7f7f7;
      }
      h1 {
        color: #2d6cdf;
      }
      label {
        display: block;
        margin-top: 10px;
        font-weight: bold;
      }
      input,
      select,
      textarea {
        width: 100%;
        padding: 6px;
        margin-top: 4px;
        border-radius: 4px;
        border: 1px solid #ccc;
      }
      .section {
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px #0001;
      }
      .inline {
        display: flex;
        gap: 10px;
        align-items: center; /* Align items vertically */
      }

      .inline > select {
        flex: 0 0 150px; /* Set a fixed width for the select dropdown */
      }

      .inline > .fields {
        flex: 1;
      }
      button {
        margin-top: 10px;
        padding: 8px 16px;
        border: none;
        background: #2d6cdf;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
      }
      button.remove {
        background: #e74c3c;
        color: white;
        border: none;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        padding: 0;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        flex: 0 0 28px; /* Don't flex, fixed size */
        align-self: center; /* Center vertically */
      }
      textarea[readonly] {
        background: #f0f0f0;
      }
      .container {
        display: flex;
        gap: 20px;
      }
      .form-panel,
      .result-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
      }
      .result-panel .section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }
      .result-panel textarea {
        flex-grow: 1;
      }
      .inline-label {
        display: inline-block;
      }
      .inline-label-margin {
        margin-right: 20px;
      }
      .hidden {
        display: none;
      }

      /* Drag and Drop Styles */
      .draggable {
        cursor: move;
        background-color: #f0f8ff; /* AliceBlue */
        border-left: 3px solid #2d6cdf;
        padding-left: 5px;
        margin-left: -8px; /* Offset to align with non-draggable items */
      }

      .drag-handle {
        cursor: grab;
        color: #aaa;
        font-size: 20px;
        font-family: sans-serif;
        padding-right: 5px;
      }

      .dragging {
        opacity: 0.5;
        background: #cce5ff;
      }

      .drag-over {
        border-top: 2px solid #2d6cdf;
      }

      .button-row {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 4px;
        margin-bottom: 10px;
      }

      .button-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
      }

      .button-controls .remove {
        margin-top: 0; /* Override default button margin */
      }

      .rating-level-container {
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        margin-top: 10px;
      }

      .rating-level-header {
        font-weight: bold;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .rating-level-container textarea {
        height: 60px; /* Smaller textarea for answers */
      }
