@scope (#original-content) {

    #worksheet-generator-section * {
      box-sizing: border-box;
    }

    #worksheet-generator-section .wg-container {
      max-width: 900px;
      margin: auto;
      background: #ffffff;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    #worksheet-generator-section h2 {
      margin: 0 0 20px 0;
      color: #222222;
      font-size: 28px;
      line-height: 1.3;
    }

    #worksheet-generator-section .form-group {
      margin-bottom: 20px;
    }

    #worksheet-generator-section label {
      display: block;
      margin-bottom: 8px;
      font-weight: bold;
      color: #222222;
    }

    #worksheet-generator-section input[type="number"],
    #worksheet-generator-section select {
      width: 100%;
      padding: 10px;
      border: 1px solid #cccccc;
      border-radius: 4px;
      font-size: 16px;
      background: #ffffff;
      color: #333333;
    }

    #worksheet-generator-section .button-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    #worksheet-generator-section .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      font-size: 16px;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      outline: none;
      border: none;
      border-radius: 5px;
      transition: background-color 0.3s ease, opacity 0.3s ease;
      min-height: 46px;
    }

    #worksheet-generator-section .btn:disabled {
      cursor: not-allowed;
      opacity: 0.65;
    }

    #worksheet-generator-section .btn-primary {
      background-color: #007bff;
      color: #ffffff;
    }

    #worksheet-generator-section .btn-primary:hover:not(:disabled) {
      background-color: #0056b3;
    }

    #worksheet-generator-section .btn-secondary {
      background-color: #6c757d;
      color: #ffffff;
    }

    #worksheet-generator-section .btn-secondary:hover:not(:disabled) {
      background-color: #5a6268;
    }

    #worksheet-generator-section .btn-success {
      background-color: #28a745;
      color: #ffffff;
    }

    #worksheet-generator-section .btn-success:hover:not(:disabled) {
      background-color: #218838;
    }

    #worksheet-generator-section .btn-danger {
      background-color: #dc3545;
      color: #ffffff;
    }

    #worksheet-generator-section .btn-danger:hover:not(:disabled) {
      background-color: #c82333;
    }

    #worksheet-generator-section .worksheet-output {
      margin-top: 30px;
      padding: 20px;
      background-color: #fafafa;
      border: 1px solid #dddddd;
      border-radius: 5px;
      white-space: pre-wrap;
      font-family: 'Courier New', Courier, monospace;
      line-height: 1.6;
      max-height: 500px;
      overflow-y: auto;
      min-height: 120px;
      color: #222222;
    }

    @media (max-width: 600px) {
      #worksheet-generator-section .btn {
        width: 100%;
      }

      #worksheet-generator-section .wg-container {
        padding: 20px 16px;
      }

      #worksheet-generator-section h2 {
        font-size: 24px;
      }
    }
  
}
